Repository navigation
[sram,dv] Implement the AXI SRAM vplan V1 tests and DV environment - #764
tchilikov-semify wants to merge 5 commits into
Conversation
67490bd to
0630ee8
Compare
fda1df2 to
ca559f5
Compare
martin-velay
left a comment
There was a problem hiding this comment.
Commits 1 and 2 change every top-level build (sim_tops is now tb_cfg), not just the SRAM tests. Could the PR description say so and list what you ran, with the expected failures?
|
@martin-velay this PR is dependent on #761, so the first two commits are actually just a clone/copy of #761. They will eventually be replaced by the final contents of #761 once its merged. |
ca559f5 to
557fb64
Compare
martin-velay
left a comment
There was a problem hiding this comment.
On the structure side, it should be reworked.
axi_sramis a Mocha IP, so it would sit inhw/ip/axi_sram/likerngandmailbox, with the vPlan indata/and the DV indv/. Could you move the DV and the vPlan there, and the RTL andaxi_sram.coretoo if the RTL owners agree?axi_sram_test_pkgholds the model, the scoreboard, the env, every vseq and the base test. Could you split it intoenv/axi_sram_env_pkg,seq_lib/axi_sram_seq_pkg(importing the env) andtests/axi_sram_test_pkgwithaxi_sram_base_test? A top-level bench can then reuse the scoreboard on the SRAM port without compiling the sequences and tests.- The env reads its vifs from
config_dband callsset_drive_x_when_idleitself, and the virtual sequencer holds twoclk_rst_ifhandles. Could anaxi_sram_env_cfg, created by the base test, hold the vifs, the SRAM size,en_scb,en_covandis_active? axi_sram_covis a module in the block TB that rebuilds the bursts from the pins alongside the monitor. Could it become anaxi_sram_env_covclass in the env, sampled from the monitor's transactions whenen_covis set? It would then also run at top level.- Could the TB be
tb/tb.svwith moduletb, and the sim cfg and coreaxi_sram_sim_cfg.hjsonandaxi_sram_sim.coreat thedv/root, as for the mailbox? - The class files in
seq_lib/could be.svhlike the rest ofenv/, with the extern layoutmailbox_envuses.
b8e3a7c to
7944730
Compare
|
Hi @martin-velay, thanks for the structural feedback. I've gone through and addressed most of this. I think the suggestion to move the RTL is good, and I'm for this, since I think the SRAM is better placed in the IP folder. Before making the RTL move, I would like to run it past @marnovandermaas. Marno, what do you think about the move? |
7944730 to
adde948
Compare
- replace the TODOs with the assertions and tests that cover them - drop suffixes so the test names match dvsim - add clarifying comments and issue links
The bind is pulled into top_chip_sim.core, so the top level tb checks them too.
Add reference model, scoreboard, coverage model, and a cfg that lets a top level testbench reuse the env passively.
Add the tb, base test, and one vseq per V1 testpoint. Register axi_sram in mocha_sim_cfgs. Run with dvsim hw/ip/axi_sram/dv/axi_sram_sim_cfg.hjson
adde948 to
ff8185e
Compare
This PR implements the V1 block level testbench for the
axi_sram.In particular, the commits:
smokeregression.Additionally, #783 is still open.
The tests can be run with:
dvsim hw/ip/axi_sram/dv/axi_sram_sim_cfg.hjson -i block --cov: 4/4