Skip to content

Commit a599946

Browse files
committed
vivado: fixed Verilog example after changes into resources
1 parent c4e9629 commit a599946

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

vivado/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ version:
1212

1313
clean:
1414
rm -fr *.bit *.cache *.hw *.runs *.xpr *.jou *.ip_user_files
15-
rm -fr *.html *.log *.txt *.xml .Xil
15+
rm -fr *.html *.log *.txt *.xml .Xil *.zip

vivado/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ VHDL:
1212
* As a workaround, I set SKIP_ARCH
1313
* Values are specified following Verilog notation.
1414
* In case of character, is needed to specify the ASCII value
15+
16+
Verilog:
17+
* `$finish` is ignored, but fortunatly `$error("some text")` produces the desired result.

vivado/vlog.tcl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@ create_project -force vlog-project
22

33
set_property "part" xc7z010-1-clg400 [current_project]
44

5-
add_files ../resources/verilog/blink.v
5+
add_files ../resources/vlog/blink.v
66

7-
add_files ../resources/verilog/top.v
7+
add_files ../resources/vlog/top.v
88
add_files ../resources/constraints/zybo/clk.xdc
99
add_files ../resources/constraints/zybo/led.xdc
1010

1111
set_property top Top [current_fileset]
1212

13-
set_property verilog_define {VIVADO=1 FREQ=125000000} [current_fileset]
13+
set_property verilog_define {ARCH_SEL=1 FREQ=125000000} [current_fileset]
1414

15-
set_property "include_dirs" "../resources/verilog/path1 ../resources/verilog/path2" [current_fileset]
15+
set_property "include_dirs" "../resources/vlog/path1 ../resources/vlog/path2" [current_fileset]
1616

17-
set_property "generic" "BOO=1 INT=255 LOG=1'b1 VEC=8'b11111111 STR=WXYZ REA=1.1" -objects [get_filesets sources_1]
17+
set_property "generic" "BOO=1 INT=255 LOG=1'b1 VEC=8'b11111111 CHR=Z STR=WXYZ REA=1.1" -objects [get_filesets sources_1]
18+
19+
set_property STEPS.SYNTH_DESIGN.ARGS.ASSERT true [get_runs synth_1]
1820

1921
reset_run synth_1
2022
launch_runs synth_1

0 commit comments

Comments
 (0)