o1553_host¶
Host interface of Open1553: one AXI4-Lite slave port to the registers and to a window onto the buffer memory (HI-1), the register file generated from one register description (HI-2), the SECDED buffer memory of 8192 words with scrubber, fixed-priority arbitration between the protocol engine and the host and the initialisation of the default tables (HI-3), the event log pointers and the interrupt flags (HI-4), the error counters of the buffer memory (HI-5) and the reset synchroniser with the microsecond time base (HI-6).
| Document | Content |
|---|---|
| specification.md | Requirements |
| architecture.md | Blocks, ports, address map, arbitration, host access, timing |
| register_map.md | Registers and fields, generated from regs/o1553_regs.yml |
| verification_plan.md | Test cases |
| verification_report.md | Results, measured timing, coverage, checks of the testbench |
Register map¶
regs/o1553_regs.yml describes every register. python tools/regmap.py generates the VHDL package
src/o1553_regs_pkg.vhd, the page register_map.md and the C header sw/o1553_regs.h from it;
python tools/regmap.py --check fails when a generated file is not up to date.
Tests¶
The testbench needs the libraries of the repository (Open Logic, UVVM, VUnit) and GHDL or QuestaSim, see the repository README.
python run.py -p 2 "*o1553_host_tb*" # all test cases in all configurations
python run.py -v "*o1553_host_tb.c16.test_errors" # one test case in one configuration
python lint/synth_check.py # GHDL synthesis (after run.py --compile)
| File | Content |
|---|---|
tb/o1553_host_tb.vhd |
Test sequence: the test cases TC-HI-01 to TC-HI-13 |
tb/o1553_host_th.vhd |
Harness: clock, the host interface, the AXI4-Lite VVC as the host, the requester model of the memory port, the monitor of the host reads, the counters of the pulse outputs, events aligned with a register write |
tb/o1553_host_tb_pkg.vhd, tb/o1553_host_tb_var_pkg.vhd |
Signals between sequence and harness, default tables of the specification, fill pattern, reference model of the buffer memory |
tb/vunit_config.py |
Configurations c100, c16, c400, l2, l7 and p1 (verification plan, section 2) |
../../tb/o1553_tb_axilite_master.vhd |
AXI4-Lite master shared by the testbenches: the UVVM AXI4-Lite VVC with the signals of an Open Logic slave port |