# Input columns are: time_in, set_time, date_in, set_date # Output columns are: time_out, date_out # Time encoding: HHMMSS # Date encoding: WYYMMDD # # Lines with just 'X' mean 1000 clock cycles = 1 second of simulation # Normally 10 clock cycles pass on each line, to give time for the ripple # carry logic inside the block. # Initialize to 00:00:00 on 1.1.2013 000000 1 2130101 1 000000 2130101 # Count a few seconds X 000000 0 0000000 0 000001 2130101 X 000000 0 0000000 0 000002 2130101 X 000000 0 0000000 0 000003 2130101 # Test full carry chain, i.e. last second of year, with fake Sunday 235958 1 7131231 1 235958 7131231 X 000000 0 0000000 0 235959 7131231 X 000000 0 0000000 0 000000 1140101 # Test leap years 235958 1 4130228 1 235958 4130228 X 000000 0 0000000 0 235959 4130228 X 000000 0 0000000 0 000000 5130301 235958 1 2120228 1 235958 2120228 X 000000 0 0000000 0 235959 2120228 X 000000 0 0000000 0 000000 3120229