File tree 3 files changed +8
-9
lines changed
3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 5
5
SIM ?= icarus
6
6
TOPLEVEL_LANG ?= verilog
7
7
SRC_DIR = $(PWD ) /../src
8
- PROJECT_SOURCES = project.v
9
8
10
9
ifneq ($(GATES ) ,yes)
11
10
12
11
# 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 )
16
15
17
16
else
18
17
19
18
# Gate level simulation:
20
- SIM_BUILD = sim_build/gl
19
+ SIM_BUILD = sim_build/gl
21
20
COMPILE_ARGS += -DGL_TEST
22
21
COMPILE_ARGS += -DFUNCTIONAL
23
22
COMPILE_ARGS += -DUSE_POWER_PINS
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module tb ();
24
24
wire [7 :0 ] uio_oe;
25
25
26
26
// Replace tt_um_example with your module name:
27
- tt_um_example user_project (
27
+ tt_um_nvious_graphics user_project (
28
28
29
29
// Include power ports for the Gate Level test:
30
30
`ifdef GL_TEST
Original file line number Diff line number Diff line change @@ -26,15 +26,15 @@ async def test_project(dut):
26
26
dut ._log .info ("Test project behavior" )
27
27
28
28
# 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
31
31
32
32
# Wait for one clock cycle to see the output values
33
33
await ClockCycles (dut .clk , 1 )
34
34
35
35
# The following assersion is just an example of how to check the output values.
36
36
# 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
38
38
39
39
# Keep testing the module by changing the input values, waiting for
40
40
# one or more clock cycles, and asserting the expected output values.
You can’t perform that action at this time.
0 commit comments