Skip to content

Commit 9591186

Browse files
eszpotanskioharboe
authored andcommitted
synth: allow JSON files in VERILOG_FILES
Signed-off-by: Eryk Szpotanski <[email protected]>
1 parent f8d87d5 commit 9591186

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

flow/scripts/synth_preamble.tcl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ if {[info exist ::env(VERILOG_INCLUDE_DIRS)]} {
2222

2323
# Read verilog files
2424
foreach file $::env(VERILOG_FILES) {
25-
read_verilog -defer -sv {*}$vIdirsArgs $file
25+
if {[file extension $file] == ".json"} {
26+
read_json $file
27+
} else {
28+
read_verilog -defer -sv {*}$vIdirsArgs $file
29+
}
2630
}
2731

2832

0 commit comments

Comments
 (0)