feat: include chip ROM when running in verification mode (--test)

This commit is contained in:
Uri Shaked
2023-09-11 15:35:24 +03:00
parent b02cc19e78
commit 23da39ba14
3 changed files with 7 additions and 13 deletions
+5 -1
View File
@@ -8,6 +8,10 @@
`default_nettype none
`ifndef ROM_VMEM_PATH
`define ROM_VMEM_PATH "rom.vmem"
`endif
module tt_um_chip_rom (
input wire [7:0] ui_in, // Dedicated inputs
output wire [7:0] uo_out, // Dedicated outputs
@@ -22,7 +26,7 @@ module tt_um_chip_rom (
reg [7:0] rom_data [0:255];
initial begin
$readmemh("rom.vmem", rom_data);
$readmemh(`ROM_VMEM_PATH, rom_data);
end
assign uo_out = rom_data[ui_in];