Skip to content

o1553_core: Verification Plan

1. Overview

The core is verified at its ports as a remote terminal on a dual-redundant bus, programmed and read by a host through the AXI4-Lite port, with the operational sequences of the user guide. The far ends are the models of the repository:

  • The host: the UVVM AXI4-Lite VVC (tb/o1553_tb_axilite_master.vhd). It programs the registers and the buffers, reads the status registers, the buffers and the event log, and runs the host sequences of D9 (architecture section 6) with pauses between the accesses.
  • The bus controller and the other terminals: the bus model of the repository (tb/o1553_tb_bus.vhd) on both buses, with the message helpers of tb/o1553_tb_msg_pkg.vhd. It sends the commands and data words with the faults and timing deviations of the codec and RT plans, plays the second terminal of RT to RT transfers, decodes every word the core sends and logs it with its timing.
  • The remote terminals in the BC role: the RT model of the repository (tb/o1553_tb_rt.vhd, verified by its own testbench) on both buses, at RT addresses other than that of the core, with its faults (no response, late responses, word errors, busy).
  • The traffic that the BM records: the bus model as the bus controller and as the other terminals (their status and data words at chosen response times) on both buses, and the core itself as an RT. The test sequence decodes every record that the host reads from the ring with the record formats of o1553_bm architecture section 4 and compares it with the words that the bus model sent and logged on the bus, with their timing.
  • The RT address straps, the error injection ports, Bc_TimeTick and ErrInj_RoleFlip are driven by the test sequence; the indications, Bc_FrameSync, Bc_FrameNum and Irq are logged with their clock cycle.

The tests cross every seam between the modules (section 5); the behaviour of each module itself is verified by its own testbench, and the core tests repeat it only where the assembled core adds something: the timing at the ports, the host sequences against the bus traffic, the containment of memory errors from the memory to the bus and to the host.

Measurement for the report: a monitor of the host port records, per read, the cycles from the read address handshake to the read data handshake, and the report states the longest host read during the bus traffic of TC-CORE-04, TC-CORE-08 and TC-CORE-09. The request pattern of the RT on its memory port is a measured property of the RT verification report (o1553_rt_tb with a memory model without wait cycles); the core testbench observes ports only.

2. Test configuration

Testbench Harness DUT and environment
o1553_core_tb o1553_core_th o1553_core; AXI4-Lite VVC on the host port; bus model and RT model on both buses; drivers of the straps, the error injection of the buffer memory and of the message buffers of the BM, the tick and the role injection; logs of the indications, the frame start outputs and Irq; monitor of the host reads
o1553_core_role_tb none (the entity alone) o1553_core_role at its ports: drivers of both engines' transmit streams, aborts, fail-safe releases and record events, of the codec's transmit handshake and Tx_Busy, of the role and of CONTROL.RT_EN, of the message of the RT in progress and of the enable and the activity of the BM; logs of every output per cycle (section 9)
VUnit configuration ClkFreq_g, SyncStages_g, RamRdLatency_g, EccPipeline_g Purpose
c100 100 MHz, 2, 1, 1 Nominal; all tests
c16 16 MHz, 2, 1, 1 Lowest clock, rtRespMin without margin
c400 400 MHz, 2, 1, 1 Highest clock
s4 16 MHz, 4, 1, 1 Longest synchroniser
l2 100 MHz, 2, 1, 0 Shortest memory latency (2)
l7 16 MHz, 2, 4, 2 Longest memory latency (7) at the lowest clock: rtRespMin 72 cycles
c100_bc, c16_bc, c400_bc, l7_bc as c100, c16, c400, l7, IncludeBc_g true The BC role
c100_open as c100, IncludeBc_g and AllowOpenProfile_g true The open profile at the core
c100_bm, c16_bm, c400_bm, l7_bm as c100, c16, c400, l7, IncludeBm_g true The BM
c100_bcbm as c100, IncludeBc_g and IncludeBm_g true The BM and the BC in one core

ScrubPeriod_g is 0.0 in every configuration (the pacer is verified in o1553_host_tb). IncludeBc_g and AllowOpenProfile_g are false in the configurations without a suffix. The tests of the RT role marked "all" run in every configuration without a suffix, the others in c100; TC-CORE-01 to TC-CORE-13 also run in c100_bc, so that the included BC is shown not to change the RT. The tests of the BC role marked "all" run in c100_bc, c16_bc, c400_bc and l7_bc, the others in c100_bc; TC-CORE-19 runs in c100, TC-CORE-15 also in c100_open. IncludeBm_g is true only in the configurations with bm in the name. The tests of the BM marked "all" run in c100_bm, c16_bm, c400_bm and l7_bm, the others in c100_bm; TC-CORE-24 also runs in c16_bm, TC-CORE-25 runs in c100_bcbm, TC-CORE-27 in c100 and c100_bc. TC-CORE-01 to TC-CORE-13 also run in c100_bm and TC-CORE-15 to TC-CORE-18 in c100_bcbm, so that the included BM is shown not to change the RT and the BC. Every test runs under a VUnit watchdog, and every wait has a time-out.

3. Test cases

Test ID Description Requirements
test_start_up (TC-CORE-01) Reset: register reset values through the host port; a command during the initialisation not answered; after INIT_DONE the first command answered at 6.0 us; RT_ADDRESS shows the straps; the default illegal command tables act on the bus (subaddress 8 and a broadcast transmit command illegal, mode codes with their T/R bit) CORE-IF-01, CORE-IF-02, CORE-ST-01, CORE-RT-01, CORE-RT-04
test_messages (TC-CORE-02) Receive, transmit, broadcast receive and mode messages with 1, 2 and 32 data words on both buses: transmit data written by the host reach the bus, received data reach the published buffer with the status word and the message count, the event records with the time tag of the command event and Irq with the record and interrupt enables of the control words; word count too high and a data word that is not contiguous: no status word, nothing published; broadcast mode command: no status word, the indication and the broadcast command received bit (all) CORE-RT-01, CORE-IF-02, CORE-ST-03
test_rt_to_rt (TC-CORE-03) RT to RT transfers with the bus model as the second terminal, the core receiving and transmitting, on both buses CORE-RT-01
test_response_time (TC-CORE-04) RESP_TIME below rtRespMin, at rtRespMin, 6.0 us, 12.0 us and above: the response time measured at the ports within one cycle of the bounded value, for receive, transmit and mode commands; at rtRespMin illegal receive and transmit commands answered with the message error bit, also while the host reads the memory window back to back (all) CORE-RT-02
test_configuration (TC-CORE-05) Each configuration field on the bus: RT_EN = '0' silent; BCST_EN; ILLEGAL_EN with a table entry changed through the window; LOG_ERRORS (a record of a message error without record enable); service request, busy, subsystem flag and terminal flag in the status word, each alone; the vector word (mode code 16); the BIT word with host bits (mode code 19); BUS_EN silent on a disabled bus; MON_EN with an echo fault of the bus model CORE-RT-03
test_status_indications (TC-CORE-06) Status registers after messages: RT_STATUS, RT_LAST_CMD, BIT (loopback error), RT_FRAME after mode code 17, TX_IN_USE during a transmit message of buffer 1, BUS_STATUS after mode codes 4, 5, 20 and 21, a message on the shut-down bus received with its status word suppressed (record word 2 bit 6); the indications at the ports with the timing of RT-TM-04, Rt_SyncData and SYNC_DATA; the interrupt flags of the indications CORE-RT-04, CORE-RT-05
test_address (TC-CORE-07) Straps with wrong parity and with address 31 at the reset: no response on either bus, RT_ADDRESS flags, BIT flag and Irq; straps changed and COMMAND.ADDR_CHECK: the new address answered CORE-RT-06
test_receive_lock (TC-CORE-08) A BC process sends receive messages to one subaddress back to back on both buses (each data word carries the message number and its index; word counts 1 to 32; invalid messages with word count errors, invalid words and superseding commands in between); a host process runs the receive sequence of architecture section 6 with pauses of 0 to 30 us between the accesses. Every completed read: the words of one valid message, complete, with the word count of its status word, a message number not older than the one of the read before; repeated reads counted and more than 0 (the race happened) (all) CORE-BO-01
test_transmit_switch (TC-CORE-09) A BC process sends transmit commands to one subaddress back to back on both buses; a host process runs the transmit sequence of architecture section 6 with a version number in every word and pauses of 0 to 30 us. Every transmitted message: all words of one version, versions in order; waits of the host for TX_IN_USE counted and more than 0 (all) CORE-BO-02
test_memory_errors (TC-CORE-10) A double error injected through ErrInj_BitFlip into a receive control word, a transmit control word, an illegal command table entry, a receive status word, a message count, a transmit data word, an event record word and a receive data word, one at a time: the bus behaviour of D14 (status word only; no data word stored; no publication and a record with error code 14; the transmission ending before the word), SLVERR for the host reads, the terminal flag in the next status word, BIT word bit 4, ECC_DED, the counter of the source. For the receive status word and the message count also: the next message ends with the same error code and has the terminal flag in its status word; the host makes the subaddress illegal, an illegal command to it ends with error code 8 and reads no double error (ECC_PROTOCOL unchanged); the host repairs the descriptor with the procedure of the user guide (MSG_ACTIVE = '0', MemLatency + 18 cycles, both words 0, the subaddress legal again, BIT word bit 4 cleared), and the next message is published with the message count 1 and a status word without the terminal flag. A single error in the same regions: corrected on the bus and for the host, counted, written back by the scrubber. A double error read by the data job of a superseded message (a receive command on bus B 0 to MemLatency + 12 cycles after data word 0 of a receive message on bus A whose receive status word has a double error): the new message published without the message error; whenever ECC_PROTOCOL counts the double error, ECC_DED, BIT word bit 4 and the terminal flag of the next status word are set; offsets with and without the read (all) CORE-FT-01, CORE-FT-02, CORE-FT-03, CORE-FT-04
test_ecss_services (TC-CORE-11) Time message (subaddress 29 receive to 29 transmit), frame number (mode code 17 to subaddress 1 transmit word 1), health word (HEALTH to subaddress 1 transmit word 0, reset services of subaddress 1 receive), data wrap-around (subaddress 30), each also with its enable off alone CORE-RT-03
test_dual_bus (TC-CORE-12) A command on the other bus during a received message and during a transmission (superseding; the transmission aborted); shutdown and override mode codes: BUS_STATUS and no response on the shut-down bus; BUS_EN CORE-RT-01, CORE-RT-03, CORE-RT-04
test_reset_mode (TC-CORE-13) Mode code 8: Rt_ResetReq, protocol state reset, buffer memory unchanged; Rst: buffer memory initialised again, registers at their reset values CORE-ST-01, CORE-RT-05
lint/synth_check.py (TC-CORE-14) Elaboration and synthesis of o1553_core at 16, 100 and 400 MHz, SyncStages_g 2 and 4, RamRdLatency_g 1 and 4, EccPipeline_g 0 and 2 (MemLatency 2 and 7), scrub period 0.0 and 1 ms, without latches; a clock frequency and a scrub period outside the rules stop with their messages CORE-CF-01, CORE-CF-02, CORE-ST-02
lint/synth_check.py (TC-CORE-21) Elaboration and synthesis of o1553_core with IncludeBc_g = true at 16, 100 and 400 MHz, SyncStages_g 2 and 4, MemLatency 2 and 7, and with AllowOpenProfile_g = true, without latches CORE-CF-03, CORE-ST-04
test_bc_frames (TC-CORE-15) BC role: the host writes a bus profile of three frames through the memory window (BC to RT, RT to BC, RT to RT, mode commands with and without data word, broadcast, on bus A, bus B and the bus of BC_RT_BUS) and the BC registers, clears RT_EN and starts the BC. At the transceiver ports: the frames every D, the frame synchronization messages, the gap and the time-out of BC_GAP and BC_TIMEOUT (TC-BC-11 windows), Bc_FrameSync txLatency cycles before the sync with Bc_FrameNum; time synchronization from Bc_TimeTick at the port and from BC_COMMAND.TICK; the RT models receive and send the data of the profile. Through the host port: results, received data, status table and event records; BC_STATUS, BC_FRAME_COUNT; every BC flag of IRQ_FLAGS from its event and Irq; every BC configuration field once changed and seen on the bus. In c100_open the open profile sends a format the ECSS profile refuses (all) CORE-BC-01, CORE-BC-02, CORE-IF-03, CORE-ST-04
test_bc_start (TC-CORE-16) Start with RT_EN = '1': refused, BC_START_REFUSED, the RT answers on. A start refused for an RT message in progress cannot be produced at the ports: the start needs RT_EN = '0', with which the RT ends a message at once (RT-FT-04), and two register writes land at least 3 cycles apart; TC-BC-01 verifies that refusal. A start right after a message of the RT that publishes and writes a record: CONTROL with RT_EN = '0' and BC_COMMAND.START issued back to back, at offsets of one cycle from 20 cycles before the end of the status word of the RT to 40 cycles after it; every start accepted and the first frame of the BC correct; the RT message either complete (its published buffer, message count and record correct through the host port, the record before that of the BC) or ended by RT_EN = '0' with nothing published; the test fails unless both outcomes occur, and unless at some offset with the message complete a memory request of the BC waits behind the last jobs of the RT: the profile is a list of 256 slots whose latch walk outlasts the gap after the status word of the RT, so each such wait delays the first frame start at the ports beyond the earliest of the sweep, by at most MemLatency + 26 cycles, the bound of the publication and the record of the RT (the number of these offsets in the report). In the BC role a command of the bus model to the RT address of the core gets no status word, also after RT_EN = '1' is written. The RT gives no fail-safe release in the BC role, because it is disabled: a fail-safe cut needs a transmission over 700 us, which neither engine produces, so the release path itself is verified in TC-CORE-20 (section 9). Stop: the RT silent until RT_EN = '1', then it answers, and the record of the RT follows those of the BC in the event log CORE-RL-01, CORE-RL-02, CORE-RL-04, CORE-RL-05
test_bc_role_error (TC-CORE-17) ErrInj_RoleFlip at the core port during a BC to RT message of 32 data words: the transmission at Bus_TxP/Bus_TxN ends within 20 us + txLatency + 2 cycles of the error, no further word on either bus for 2 ms, BC_STATUS.ACTIVE = '0', BC_ROLE_ERR and Irq. During the latch walk of a list of 256 slots without a last flag (the error 300 cycles after the start, the walk takes at least 768 cycles: no frame start and no BC_LIST_END) and during the fetch of slot 0 (the error at every cycle from 8 cycles before the end of the frame synchronization message, where the fetch starts, to 40 cycles after it, so that some errors come with reads in flight): no write of the BC after the error (the result words, the status table and LOG_WR_IDX compared through the host port before and after), no word of the slot, no further BC event. Afterwards RT_EN = '1': the RT answers and publishes as in TC-CORE-02 (all) CORE-RL-03, CORE-RL-04
test_bc_memory_errors (TC-CORE-18) BC role: a double error through ErrInj_BitFlip in a frame table entry, a slot, a descriptor word and a transmit data word, one at a time: the containment of BC-FT-01 and BC-FT-02 at the ports (frame without messages, not sent with code 9, the transmission ending before the word), ECC_PROTOCOL double error count, ECC_DED CORE-BC-03
test_no_bc (TC-CORE-19) IncludeBc_g = false: every BC register written, BC_COMMAND.START: no word of a BC on the bus, the RT answers on; BC_STATUS reads 0, no BC flag; Bc_FrameSync and Bc_FrameNum '0' while Bc_TimeTick and ErrInj_RoleFlip toggle; CORE_STATUS.BC_INCLUDED = '0' CORE-RL-06
test_bm_alone (TC-CORE-22) BM alone (CONTROL.RT_EN = '0'): the host writes a filter table with record and interrupt bits through the memory window and the BM registers (the ring and the filter table at their reset values and at a second placement whose ring crosses the end of the memory), and sets BM_CONTROL.EN; the bus model as the BC and as the other terminals runs every format on both buses (BC to RT, RT to BC, RT to RT, mode commands without and with a received and a transmitted data word, the broadcast forms) with 1, 2 and 32 data words, a message without a response, a word outside a message and line activity without a word. Through the host port: each record at its ring position with the words on the bus, its flags, the response times within 2 cycles of the times at the ports and a time tag between the values of TIME_TAG read before and after its message; BM_WRITE_INDEX after each record, BM_STATUS.ACTIVE and SEQ; the host advances BM_READ_INDEX; BM_RECORD with Irq for a command with its interrupt bit, BM_LEVEL when the unread words reach BM_IRQ_LEVEL; with BM_CONTROL.FILTER a command without its record bit not recorded. No transmission of the core at Bus_TxP and Bus_TxN of either bus (all) CORE-BM-01, CORE-BM-03, CORE-IF-04, CORE-ST-05
test_bm_beside_rt (TC-CORE-23) BM beside the RT (CONTROL.RT_EN = '1'): the bus model sends commands to the RT address of the core and to other terminals, which it plays itself, on both buses (receive, transmit, RT to RT with the core receiving and transmitting, mode commands, broadcast), and a command to the core on the other bus in the response window of a message to another terminal (superseded). The core answers only its own address, at RESP_TIME = rtRespMin and 12.0 us within one cycle as in TC-CORE-04; the RT publishes its buffers and writes its event records as in TC-CORE-02; the BM records every message, those with words of the core with the flag "own" and the response time of the core within 3 cycles of the time at the ports plus the echo of the bus model. The 3 cycles follow from the design: the recorded response time is the gap of the decoder, the difference of two crossing estimates (o1553_codec architecture sections 7.1, 7.4 and 7.6). The synchroniser stages and the glitch filter delay both crossings alike and cancel; the two estimates, each at most half a cycle off, give at most one cycle, and the gap kept in whole cycles up to one more: the 2 cycles of TC-CORE-22 and TC-BM-02. The expected value of the bench, the time at the ports plus the 400 ns of the echo, is truncated to whole cycles, which adds the third; the event log and the ring are both complete (all) CORE-BM-01, CORE-BM-02
test_bm_load (TC-CORE-24) Messages back to back with a gap of 4.0 us on both buses in turn (receive and transmit messages of 32 data words to the core and RT to RT transfers of 32 data words between two other terminals, in turn; message records only), while the host reads the ring, advances BM_READ_INDEX and runs the receive sequence of TC-CORE-08 with pauses of 0 to 30 us: every message recorded, the sequence numbers without a gap, BM_LOST = 0, the response time of the core within one cycle of RESP_TIME at rtRespMin. The host then stops reading: the records that do not fit are not written, BM_OVERFLOW and Irq, BM_LOST counts them and the sequence numbers show a gap of the same size; BM_COMMAND.LOST_CLR clears BM_LOST CORE-BM-05, CORE-BM-01
test_bm_bc_exclusion (TC-CORE-25) BM and BC in one core, RT_EN = '0': with the BM active, BC_COMMAND.START is refused (BC_START_REFUSED, BC_STATUS.ACTIVE = '0', no word of a BC on the bus) and the BM records on. The core as a backup BC: the BM records the messages of the bus model as the BC, the host clears BM_CONTROL.EN (BM_STATUS.ACTIVE = '0') and starts the BC with a profile placed beside the ring, which runs with the RT models. BM_CONTROL.EN = '1' while the BC runs: BM_STATUS.ACTIVE = '0', BM_WRITE_INDEX unchanged, no BM flag, the ring unchanged (read through the window before and after). BC_COMMAND.STOP: the BM becomes active with BM_WRITE_INDEX and BM_STATUS.SEQ at 0 and records the next messages of the bus model. After a role error (ErrInj_RoleFlip) the BC is inactive with BC_ROLE_ERR, the BM active from that cycle on (it records what remains of the aborted transmission of the BC), and the next message of the bus model is recorded. The enable term of the start condition decides alone only in the cycle in which the memory initialisation ends with the enable set and a start command present, which the host port cannot place; TC-CORE-29 verifies it (section 9) CORE-BM-04
test_bm_memory_errors (TC-CORE-26) RT enabled, the BM with its filter table: a double error through ErrInj_BitFlip in the word of the filter table read for a message: the record written with the flag "filter error", the double error count of ECC_PROTOCOL, ECC_DED, BIT word bit 4 and the terminal flag in the next status word of the core; a single error: the record as the table says, the single error count. A single error in a data bit through ErrInj_BmBitFlip and ErrInj_BmValid into the message buffer of each bus: the record correct; a double error: the flag "buffer error" of a message record, bit 6 of word 0 of a word record CORE-BM-06, CORE-IF-04
test_no_bm (TC-CORE-27) IncludeBm_g = false: every BM register written, BM_CONTROL.EN = '1', messages on both buses: the ring and the filter table unchanged (read through the window before and after), BM_STATUS, BM_WRITE_INDEX and BM_LOST read 0, no BM flag, ErrInj_BmBitFlip and ErrInj_BmValid toggled without effect, CORE_STATUS.BM_INCLUDED = '0'; in c100_bc a start of the BC with BM_CONTROL.EN = '1' is accepted CORE-BM-07
lint/synth_check.py (TC-CORE-28) Elaboration and synthesis of o1553_core with IncludeBm_g = true at 16, 100 and 400 MHz, SyncStages_g 2 and 4, MemLatency 2 and 7, and with IncludeBc_g = true as well, without latches CORE-CF-04, CORE-ST-05

4. Negative tests

Check Proven by
Torn receive data in a host read TC-CORE-08 (every completed read checked word by word)
Mixed transmit buffers on the bus TC-CORE-09 (every transmitted message checked word by word)
A double error of each memory region reaching the bus or the host as valid data TC-CORE-10
An invalid address answered TC-CORE-07
A disabled bus or RT answering TC-CORE-05
The RT answering in the BC role TC-CORE-16
A transmission of the BC continuing after a role error, or a write or event of the BC after it TC-CORE-17
A start of the BC while the RT is enabled TC-CORE-16 (while the RT has a message in progress: TC-BC-01)
The record events of both engines in one cycle TC-CORE-20 (the assertion of o1553_core_role provoked, section 9); every core simulation runs with the assertion
A start of the BC while the BM is enabled or active TC-CORE-25 (the activity), TC-CORE-29 (each term of the start condition)
A record, memory access or event of the BM while the BC is active TC-CORE-25
A word of the core on the bus while the BM runs alone TC-CORE-22
A record lost or the RT delayed at full bus traffic with host accesses TC-CORE-24
A double error of the filter table taken as a cleared bit, or not counted TC-CORE-26
A memory access or an effect of the BM registers without the BM TC-CORE-27
A path of the role from the wrong engine TC-CORE-20 (section 9)

5. Seams crossed

Seam Test cases
o1553_codec to o1553_rt: word events, line activity every test with messages
o1553_rt to o1553_codec: transmit stream, its result, shutdown and fail-safe release TC-CORE-02, TC-CORE-04, TC-CORE-10 (transmission ended), TC-CORE-12
o1553_rt to o1553_host: memory port every test with messages; MemLatency 2, 3 and 7
o1553_rt to o1553_host: event log, time tag, record events TC-CORE-02, TC-CORE-08, TC-CORE-10
o1553_host to o1553_rt: configuration, double error event TC-CORE-05, TC-CORE-10
o1553_rt to o1553_host: state, indications TC-CORE-06, TC-CORE-07
o1553_host to and from o1553_codec: bus enables, loopback monitor, transmitter state TC-CORE-05, TC-CORE-06, TC-CORE-12
Reset distribution TC-CORE-01, TC-CORE-13
Error injection to the buffer memory TC-CORE-10
Host port: registers and memory window together with the bus traffic TC-CORE-04, TC-CORE-08, TC-CORE-09
o1553_codec to o1553_bc: word events, line activity, transmitter state TC-CORE-15, TC-CORE-18
o1553_bc to o1553_codec through o1553_core_role: transmit stream, its result, abort, fail-safe release TC-CORE-15, TC-CORE-17, TC-CORE-18; the paths of the role cycle by cycle in TC-CORE-20
o1553_bc to o1553_host: memory port, record events, state, events TC-CORE-15, TC-CORE-16, TC-CORE-17, TC-CORE-18; MemLatency 3 and 7
o1553_host to o1553_bc: configuration, commands TC-CORE-15, TC-CORE-16
o1553_rt to o1553_bc: message in progress; o1553_core_role to o1553_rt: RT enable TC-CORE-16
Ports of the BC: tick, frame start, role injection TC-CORE-15, TC-CORE-17, TC-CORE-19
o1553_codec to o1553_bm: word events, line activity without a word TC-CORE-22, TC-CORE-23, TC-CORE-24
o1553_bm to o1553_host: memory port, state, events TC-CORE-22, TC-CORE-24, TC-CORE-26; MemLatency 3 and 7
o1553_host to o1553_bm: configuration, command, time tag TC-CORE-22, TC-CORE-24
o1553_bc to o1553_bm (BC active); o1553_rt and o1553_bm to o1553_bc through o1553_core_role (start condition) TC-CORE-25; the start condition cycle by cycle in TC-CORE-29
Ports of the BM: error injection of the message buffers TC-CORE-26, TC-CORE-27

6. Functional coverage

Coverpoint Requirements Bins Goal
FORMAT CORE-RT-01 receive, transmit, RT to RT receive and transmit, mode without and with data word, broadcast receive, broadcast mode, each on bus A and bus B 100 %
HOST_RACE CORE-BO-01, CORE-BO-02 receive read repeated after a publication; transmit switch waited for TX_IN_USE, with PENDING and with BUF 100 %
DED_REGION CORE-FT-01 receive control word, transmit control word, table entry, receive status word, message count, transmit data word, event record word, receive data word 100 %
RESPONSE_TIME CORE-RT-02 below the minimum, rtRespMin, 6.0 us, 12.0 us, above the maximum 100 %
ROLE CORE-RL-01 to CORE-RL-04 start refused by RT_EN; start right after a message of the RT, with a request of the BC behind its last jobs; role error while waiting for the first frame, while transmitting, with reads in flight; stop; command to the own RT address in the BC role 100 %
BC_FORMAT CORE-BC-01 BC to RT, RT to BC, RT to RT, mode without and with data word, broadcast, each on bus A and bus B 100 %
BM_FORMAT CORE-BM-01, CORE-BM-02 BC to RT, RT to BC, RT to RT, mode without data word, with a received and with a transmitted data word, the broadcast forms, word outside a message, line activity, each on bus A and bus B; messages with words of the core 100 %
BM_EXCLUSION CORE-BM-04 start refused with the BM active; the core as a backup BC; BM_CONTROL.EN set while the BC is active; the BM active after a stop and after a role error 100 %

7. Generic coverage

Generic Declared range Simulated Synthesised
ClkFreq_g 16 MHz to 400 MHz, multiples of 2 MHz 16, 100, 400 MHz 16, 100, 400 MHz
SyncStages_g 2 to 4 2, 4 2, 4
RamRdLatency_g 1 to 4 1, 4 1, 4
EccPipeline_g 0 to 2 0, 1, 2 0, 1, 2
ScrubPeriod_g 0.0 or at least 1 ms 0.0 0.0, 1 ms (simulated in o1553_host_tb)
IncludeBc_g false, true false, true false, true
AllowOpenProfile_g false, true false, true (c100_open) false, true
IncludeBm_g false, true false, true false, true

8. Traceability

Every requirement of the specification is covered by the test cases of sections 3 and 9; python tools/compliance.py lists the test cases per requirement and per clause in the compliance matrix.

9. Tests of the role (o1553_core_role)

o1553_core_role_tb tests the role entity at its own ports (TC-CORE-20), cycle by cycle, with random streams of both engines, random Tx_Busy and handshakes of the codec, and changes of the role in every phase of a transmission. Three of its properties cannot be observed at the core ports:

  • I20, the fail-safe release of the RT never reaching the codec in the BC role: a fail-safe cut needs a transmission over 700 us, and neither engine produces one (the longest is 33 words, 660 us), so no cut and no release can be seen at the transceiver ports. The core tests stop at the consequence they can observe, the RT silent in the BC role (TC-CORE-16).
  • The paths in the one cycle of a role error, in which the stream already follows the RT while the abort of the BC must still reach the codec. TC-CORE-17 shows the result at the transceiver ports (the transmission ends within the word), this bench shows the paths.
  • The enable term of the start condition of the BC (D27): it decides alone only in the cycle in which the memory initialisation ends with BM_CONTROL.EN set and a start command present, and the host port cannot place a register write in that cycle. TC-CORE-25 shows the refusal by the activity of the BM at the core ports, this bench each term (TC-CORE-29).
Test Checks Requirements
test_role_tx (TC-CORE-20) The encoder stream from the BC in the BC role and from the RT otherwise, Tx_Ready to the same engine only; the role changing while the encoder is idle and during a transmission CORE-RL-02, CORE-ST-04
test_role_result (TC-CORE-20) Tx_Done, Tx_Result and Tx_Suppressed only to the engine that started the transmission: a transmission of the BC ended after a role error reaches the BC, never the RT; the owner follows the role only while Tx_Busy = '0' CORE-RL-03, CORE-RL-04
test_role_abort (TC-CORE-20) Tx_Abort of either engine reaches the codec in either role, also in the cycle of the change of the role CORE-RL-03
test_role_fs_clr (TC-CORE-20) Fs_Clr of the BC passes only in the BC role, that of the RT only in the RT role, in every cycle including that of a change of the role (I20) CORE-RL-02
test_role_rt_enable (TC-CORE-20) Cfg_RtEn of the RT = CONTROL.RT_EN and not the BC role, in every combination and cycle CORE-RL-02
test_role_log (TC-CORE-20) Log_Push of either engine reaches the host, with the Log_Irq of the engine that pushes; random pushes of both, never in one cycle. Default stop level; the post check requires the message of the assertion zero times and the end marker of the test CORE-RL-05
test_role_log_coincidence (TC-CORE-20) Both engines push in one cycle: the assertion reports it. This test alone runs with vhdl_assert_stop_level = "failure"; its post check requires the message of the assertion exactly once and the end marker of the test, so a crash before the provoked cycle fails CORE-RL-05
test_role_bc_start_block (TC-CORE-29) Bc_StartBlock = Stat_MsgActive of the RT or Cfg_BmEn or Stat_BmActive, each term alone and in every combination and cycle, also in the cycles of a change of the role CORE-BM-04

The stop level of every other test is the default ("error"), so the assertion stops any core simulation in which the record events of both engines coincide. run.py checks for every simulation that its stop level is the one its configuration sets, as it checks the generics, so that the option of test_role_log_coincidence cannot leak into another test; both post checks run in GHDL and in QuestaSim.

Each of these wiring faults, inserted one at a time into o1553_core_role, fails at least one of the tests above: the stream from the RT in the BC role, the stream from the BC in the RT role, Tx_Ready to both engines, the result to the active engine instead of the owner, the owner following the role during a transmission, the abort of the BC only, the abort of the RT only, Fs_Clr of both engines ORed, Fs_Clr of the RT in the BC role, the push of one engine only, Log_Irq of the other engine, the RT enable without the role, the assertion removed, and each of the three terms of the start condition of the BC removed.