Skip to content

Commit

Permalink
Specified top module for Verilator
Browse files Browse the repository at this point in the history
  • Loading branch information
rejunity committed Oct 26, 2024
1 parent 71c3cb1 commit 0918e86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/tt_um_rejunity_atari2600.v
Original file line number Diff line number Diff line change
Expand Up @@ -651,8 +651,8 @@ module tt_um_rejunity_atari2600 (
wire [7:0] spi_data_read;
reg spi_data_ready;
wire spi_busy;
qspi_flash_controller #(.DATA_WIDTH_BYTES(1), .ADDR_BITS(24)) flash_rom (
`ifdef QSPI_ROM
qspi_flash_controller #(.DATA_WIDTH_BYTES(1), .ADDR_BITS(24)) flash_rom (
.clk(clk),
.rstn(rst_n),

Expand All @@ -672,7 +672,7 @@ module tt_um_rejunity_atari2600 (
.data_out(spi_data_read),
.data_ready(spi_data_ready),
.busy(spi_busy)
`endif
);
`endif

endmodule
2 changes: 1 addition & 1 deletion verilator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ a2600: V${TOP}.mk

V${TOP}.mk: ${MAIN_CPP}
verilator ${VFLAGS} ${WFLAGS} -I${SRC_DIR} \
-cc ${TOP}.v ${PROJECT_SOURCES} --exe $< -o ${EXEC_NAME} \
-top $(TOP) -cc ${TOP}.v ${PROJECT_SOURCES} --exe $< -o ${EXEC_NAME} \
-CFLAGS "${SDL_CFLAGS}" -LDFLAGS "${SDL_LDFLAGS}"

all:
Expand Down

0 comments on commit 0918e86

Please sign in to comment.