Skip to content

Commit

Permalink
Tests: dummy rom_2600 to make both GL and usual tests happy
Browse files Browse the repository at this point in the history
  • Loading branch information
rejunity committed Nov 10, 2024
1 parent 6cd516c commit c775fc5
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ ifneq ($(GATES),yes)

# RTL simulation:
SIM_BUILD = sim_build/rtl
COMPILE_ARGS += -DNO_MACRO_ROMS
COMPILE_ARGS += -DSIM
VERILOG_SOURCES += $(addprefix $(SRC_DIR)/,$(PROJECT_SOURCES))
COMPILE_ARGS += -I$(SRC_DIR)
Expand Down
45 changes: 45 additions & 0 deletions test/tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,51 @@
that can be driven / tested by the cocotb test.py.
*/


module rom_2600_0 (
`ifdef GL_TEST
input wire VPWR,
input wire VGND,
`endif
input wire [11:0] addr,
output wire [ 7:0] q
);
assign q = {8{&addr}};
endmodule

module rom_2600_1 (
`ifdef GL_TEST
input wire VPWR,
input wire VGND,
`endif
input wire [11:0] addr,
output wire [ 7:0] q
);
assign q = {8{&addr}};
endmodule

module rom_2600_2 (
`ifdef GL_TEST
input wire VPWR,
input wire VGND,
`endif
input wire [11:0] addr,
output wire [ 7:0] q
);
assign q = {8{&addr}};
endmodule

module rom_2600_3 (
`ifdef GL_TEST
input wire VPWR,
input wire VGND,
`endif
input wire [11:0] addr,
output wire [ 7:0] q
);
assign q = {8{&addr}};
endmodule

module tb ();

// Dump the signals to a VCD file. You can view it with gtkwave.
Expand Down

0 comments on commit c775fc5

Please sign in to comment.