Skip to content

Commit 1cb350b

Browse files
committed
updating test
1 parent 0c7982f commit 1cb350b

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

test/Makefile

+4-5
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,18 @@
55
SIM ?= icarus
66
TOPLEVEL_LANG ?= verilog
77
SRC_DIR = $(PWD)/../src
8-
PROJECT_SOURCES = project.v
98

109
ifneq ($(GATES),yes)
1110

1211
# RTL simulation:
13-
SIM_BUILD = sim_build/rtl
14-
VERILOG_SOURCES += $(addprefix $(SRC_DIR)/,$(PROJECT_SOURCES))
15-
COMPILE_ARGS += -I$(SRC_DIR)
12+
SIM_BUILD = sim_build/rtl
13+
VERILOG_SOURCES = $(SRC_DIR)/*.v
14+
COMPILE_ARGS += -I$(SRC_DIR)
1615

1716
else
1817

1918
# Gate level simulation:
20-
SIM_BUILD = sim_build/gl
19+
SIM_BUILD = sim_build/gl
2120
COMPILE_ARGS += -DGL_TEST
2221
COMPILE_ARGS += -DFUNCTIONAL
2322
COMPILE_ARGS += -DUSE_POWER_PINS

test/tb.v

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module tb ();
2424
wire [7:0] uio_oe;
2525

2626
// Replace tt_um_example with your module name:
27-
tt_um_example user_project (
27+
tt_um_nvious_graphics user_project (
2828

2929
// Include power ports for the Gate Level test:
3030
`ifdef GL_TEST

test/test.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ async def test_project(dut):
2626
dut._log.info("Test project behavior")
2727

2828
# Set the input values you want to test
29-
dut.ui_in.value = 20
30-
dut.uio_in.value = 30
29+
dut.ui_in.value = 0
30+
dut.uio_in.value = 0
3131

3232
# Wait for one clock cycle to see the output values
3333
await ClockCycles(dut.clk, 1)
3434

3535
# The following assersion is just an example of how to check the output values.
3636
# Change it to match the actual expected output of your module:
37-
assert dut.uo_out.value == 50
37+
# assert dut.uo_out.value == 50
3838

3939
# Keep testing the module by changing the input values, waiting for
4040
# one or more clock cycles, and asserting the expected output values.

0 commit comments

Comments
 (0)