test_reset_init (TC-HI-01) |
After the reset: every register at its reset value (RESP_TIME = 6.0 us in cycles); Mem_InitDone and INIT_DONE after the 8192 writes; every memory word read through the window and through the requester model: the default tables of the specification (section 6), 0 elsewhere; host reads and writes during the initialisation answered (all) |
HI-MEM-04, HI-RF-03, HI-FT-01, HI-IF-08 |
test_registers (TC-HI-02) |
Every RW field with walking ones and zeros and with byte enables; RO fields not changed by writes; W1 fields read 0 and give exactly one pulse; addresses without a register read 0 and ignore writes, response OKAY |
HI-RF-01, HI-HP-01, HI-IF-01 |
test_configuration (TC-HI-03) |
Every configuration field drives its output of the RT and of the codec, and only that output |
HI-RF-02, HI-IF-03 |
test_status (TC-HI-04) |
Every status field shows its input (random values on every state input of the RT and the codec) |
HI-RF-05, HI-IF-03 |
test_commands (TC-HI-05) |
ADDR_CHECK, ECC_CLR: one-cycle pulses; BIT W1C: the written ones of bits 7 to 0 on Cfg_BitClr for one cycle, HOST bits on Cfg_BitHost; HEALTH W1S: the written ones on Cfg_HealthSet for one cycle, reads Stat_Health |
HI-RF-04, HI-RF-02 |
test_memory_window (TC-HI-06) |
Every word pre-filled through the protocol port, then written and read through the window with address-dependent data; bits 31 to 16 read 0 and are ignored; writes with byte enables 1 or 0 cleared change nothing; back-to-back accesses, a read right after a write of the same word (all) |
HI-HP-02, HI-HP-03, HI-IF-01 |
test_arbitration (TC-HI-07) |
The requester model runs the RT access shapes (lookup pairs, data words, publications, records, a lookup followed by a record, the end of a message), then runs of 16 consecutive requests followed by 48 to 60 free cycles, then a request in every cycle, while the host writes one half of its region and reads the other back to back, with write-only rounds: every request of the protocol engine accepted in its cycle or in the next, never later, and requests that waited one cycle observed; responses MemLatency cycles after acceptance, in order, data of the reference model; every host read answered within 64 cycles; no memory corruption and no lost host write (protocol sweep of every word against the reference model) (all) |
HI-MEM-02, HI-MEM-03, HI-HP-04, HI-IF-02 |
test_errors (TC-HI-08) |
Single errors in data and parity bits: corrected data to the host and to the requester model, ECC_HOST and ECC_PROTOCOL SEC counts, ECC_SEC; double errors: host read answered with SLVERR within ReadTimeoutClks_g + 8 cycles after it was issued, the next host read answered normally, the requester model running its traffic during the stall with every request accepted within one cycle, Mem_Rsp_Ded to the requester model, DED counts, ECC_DED, one Ecc_DedEvent pulse each; the scrubber writes a single error back (a later read without SEC, ECC_SCRUB SEC count) and counts a double error without writing it; SCRUB_EN = '0' stops it; counters cleared by their read and by ECC_CLR; SCRUB_PASSES advances (all) |
HI-HP-02, HI-HP-05, HI-MEM-01, HI-ECC-01, HI-ECC-02, HI-IF-07 |
test_event_log (TC-HI-09) |
Log_WrIdx advances at every Log_Push and wraps at 256; LOG_RD_IDX read and write; LOG_OVF set by a push with 255 unread records and not by one with 254; RECORD only for a push with Log_Irq |
HI-EV-01, HI-EV-02, HI-EV-03, HI-IF-04 |
test_interrupts (TC-HI-10) |
Every flag set by its event, kept by a written '0', cleared by a written '1'; an event one cycle before the cycle of the clear is cleared, an event in that cycle or one cycle later sets the flag (RECORD with LOG_OVF, TIME_SYNC, FRAME_SYNC, RESET_REQ, SELF_TEST, BIT); BIT only for a rising bit 7 to 0 of the BIT word; Irq only with the enable, as a level; SYNC_DATA takes the data of a frame synchronisation |
HI-EV-03, HI-EV-04, HI-EV-05, HI-IF-06 |
test_time_base (TC-HI-11) |
One tick every ClkFreq_g / 1 MHz cycles; Time_Tag and TIME_TAG count microseconds from 0 after the reset (all) |
HI-TB-02, HI-IF-05 |
test_reset_input (TC-HI-12) |
Reset pulses of one cycle, shorter than a cycle and long: Rst asserted and released after the synchroniser; registers, flags, indices and time tag back at their reset values; the memory initialised again |
HI-TB-01, HI-IF-08, HI-FT-01 |
test_scrub_pacer (TC-HI-13) |
In p1: one scrub pass per millisecond (SCRUB_PASSES); a pass that the traffic of the requester model holds back beyond its period sets SCRUB_OVR |
HI-MEM-01, HI-EV-03 |
test_two_engines (TC-HI-14) |
Both requester models together with the host accesses of TC-HI-07: the BC model runs its shapes (the jobs of o1553_bc, latch walks of up to 15 reads in consecutive cycles) and requests in every cycle while the RT model runs the RT shapes, with reads of both interleaved cycle by cycle; every request of the RT accepted in its cycle or in the next, never later, whatever the BC requests; requests of the BC accepted when neither the host access nor the RT takes the memory; every response on the port of its read, in the order of that port, with the data of the reference model (address-dependent data, the two engines on different address ranges and on the same words); the BC model withdraws a request that waits and stops requesting with reads in flight: no access of the withdrawn request, its reads in flight answered on its port only, nothing on the port of the RT; double errors injected into reads of each engine reach only that engine and count in ECC_PROTOCOL (all) |
HI-MEM-02, HI-MEM-05, HI-MEM-06, HI-IF-09, HI-ECC-03 |
test_bc_registers (TC-HI-15) |
The BC registers at their reset values (BC_TIMEOUT = 18.0 us and BC_GAP = 4.0 us in cycles, the others of architecture section 3.3); every BC configuration field drives its input of the BC and only that input, RT_EN and LOG_ERRORS those of the RT and of the BC; BC_STATUS and BC_FRAME_COUNT show random values of the state inputs of the BC; every field of BC_COMMAND alone and together gives one-cycle pulses on Cmd_BcStart, Cmd_BcStop, Cmd_BcTick and each bit of Cmd_BcFsClr, and reads 0; each of the ten BC flags set by its Ev_Bc* input, cleared by a written '1', set by an event in the cycle of the clear, with its enable on Irq; CORE_STATUS.BC_INCLUDED and OPEN_PROFILE as the generics (in c100 and c100_bc) |
HI-RF-06, HI-RF-07, HI-RF-08, HI-EV-06, HI-CF-04, HI-IF-10 |
test_bm_port (TC-HI-16) |
The requester models of the RT and the BM together with the host accesses of TC-HI-07: the BM model runs its shapes (4 reads of the filter table in consecutive cycles, records of 44 and of 6 writes in consecutive cycles) and requests in every cycle while the RT model runs the RT shapes; every request of the RT accepted in its cycle or in the next, never later, whatever the BM requests; requests of the BM accepted in the first cycle in which neither the host access nor the RT takes the memory, and behind the requests of the BC model in a sequence of its own (the arbiter alone: in the core the BC and the BM are never active together); every response on the port of its read, in the order of that port, with the data of the reference model (address-dependent data, the engines on different address ranges and on the same words); the BM model withdraws a request that waits and stops requesting with reads in flight: no access of the withdrawn request, its reads in flight answered on its port only, nothing on the ports of the RT and the BC; double errors injected into reads of the BM reach only the BM, count in ECC_PROTOCOL and set ECC_DED and Ecc_DedEvent, single errors are corrected and count (all) |
HI-MEM-07, HI-IF-11, HI-ECC-04 |
test_bm_registers (TC-HI-17) |
Register map 0.3: ID.VERSION = 0x0003; the BM registers at their reset values (BM_TIMEOUT = 18.0 us in cycles, the others of architecture section 3.3); every BM configuration field drives its input of the BM and only that input (BM_FILTER_BASE bits 7 to 0 read 0 and drive '0'); BM_STATUS, BM_WRITE_INDEX and BM_LOST show random values of the state inputs of the BM; BM_COMMAND.LOST_CLR gives one one-cycle pulse on Cmd_BmLostClr and reads 0; each of the three BM flags set by its Ev_Bm* input, cleared by a written '1', set by an event in the cycle of the clear, with its enable on Irq; CORE_STATUS.BM_INCLUDED as the generic (in c100 and c100_bm) |
HI-RF-09, HI-RF-10, HI-RF-11, HI-EV-07, HI-CF-05, HI-IF-12 |
lint/synth_check.py |
Elaboration and synthesis of o1553_host at 16, 100 and 400 MHz and with MemLatency 2 and 7, without latches; a clock frequency the codec does not accept stops with its message |
HI-CF-01, HI-CF-02, HI-CF-03 |