-
Notifications
You must be signed in to change notification settings - Fork 13
[hw] rom_ctrl added to mocha #389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
bf89f97
4197ec8
d593264
0026a54
a571643
91b1f74
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -150,7 +150,22 @@ | |
| name: rom_ctrl_integrity_check | ||
| uvm_test_seq: top_chip_dv_rom_ctrl_integrity_check_vseq | ||
| sw_images: ["rom_ctrl_integrity_check_test_vanilla_bare:5"] | ||
| run_opts: ["+ChipMemSRAM_image_file={run_dir}/rom_ctrl_integrity_check_test_vanilla_bare.vmem"] | ||
| run_opts: ["+ChipMemSRAM_image_file={run_dir}/rom_ctrl_integrity_check_test_vanilla_bare.vmem", | ||
| "+ChipMemROM_image_file={proj_root}/sw/device/tests/rom_ctrl/mem_init_file.vmem"] | ||
| } | ||
| { | ||
| name: rom_ctrl_smoke | ||
| uvm_test_seq: top_chip_dv_base_vseq | ||
| sw_images: ["rom_ctrl_smoketest_vanilla_bare:5"] | ||
| run_opts: ["+ChipMemSRAM_image_file={run_dir}/rom_ctrl_smoketest_vanilla_bare.vmem", | ||
| "+ChipMemROM_image_file={proj_root}/sw/device/tests/rom_ctrl/mem_init_file.vmem"] | ||
| } | ||
| { | ||
| name: rom_ctrl_smoke_cheri | ||
| uvm_test_seq: top_chip_dv_base_vseq | ||
| sw_images: ["rom_ctrl_smoketest_cheri_bare:5"] | ||
| run_opts: ["+ChipMemSRAM_image_file={run_dir}/rom_ctrl_smoketest_cheri_bare.vmem", | ||
| "+ChipMemROM_image_file={proj_root}/sw/device/tests/rom_ctrl/mem_init_file.vmem"] | ||
| } | ||
| { | ||
| name: rv_dm_ndm_reset_req | ||
|
|
@@ -237,7 +252,7 @@ | |
| "mailbox_smoke", | ||
| "mailbox_smoke_cheri", | ||
| "axi_sram_smoke", | ||
| "axi_sram_smoke_cheri", | ||
| "axi_sram_smoke_cheri" | ||
| ] | ||
| } | ||
|
Comment on lines
252
to
257
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| { | ||
|
|
@@ -293,7 +308,8 @@ | |
| { | ||
| name: rom_ctrl | ||
| tests: [ | ||
| "rom_ctrl_integrity_check" | ||
| "rom_ctrl_integrity_check", | ||
| "rom_ctrl_smoke" | ||
|
marnovandermaas marked this conversation as resolved.
Comment on lines
309
to
+312
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| ] | ||
| } | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,7 @@ class MochaSim { | |
| protected: | ||
| top_chip_verilator _top; | ||
| VerilatorMemUtil _memutil; | ||
| MemArea _sram, _dram; | ||
| MemArea _sram, _dram, _rom; | ||
|
|
||
| virtual int Setup(int argc, char **argv, bool &exit_app); | ||
| virtual void Run(); | ||
|
|
@@ -31,7 +31,8 @@ class MochaSim { | |
| MochaSim::MochaSim(const char *sram_hier_path, int sram_size_words, | ||
| const char *dram_hier_path, int dram_size_words) | ||
| : _sram(sram_hier_path, sram_size_words, 8), | ||
| _dram(dram_hier_path, dram_size_words, 8) {} | ||
| _dram(dram_hier_path, dram_size_words, 8), | ||
| _rom("TOP.top_chip_verilator.u_top_chip_system.u_rom_ctrl.gen_rom_scramble_disabled.u_rom.u_prim_rom", 8192, 4) {} | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should add rom_hier_path and rom_size_words in here. |
||
|
|
||
| int MochaSim::Main(int argc, char **argv) { | ||
| bool exit_app; | ||
|
|
@@ -58,6 +59,7 @@ int MochaSim::Setup(int argc, char **argv, bool &exit_app) { | |
|
|
||
| _memutil.RegisterMemoryArea("sram", 0x10000000, &_sram); | ||
| _memutil.RegisterMemoryArea("dram", 0x80000000, &_dram); | ||
| _memutil.RegisterMemoryArea("rom", 0x00080000, &_rom); | ||
| simctrl.RegisterExtension(&_memutil); | ||
|
|
||
| exit_app = false; | ||
|
|
||
|
KolosKoblasz-Semify marked this conversation as resolved.
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.