Remove verilog header files built from Chisel .prm file.
This commit is contained in:
@ -6,7 +6,7 @@ VIVADOFLAGS := \
|
||||
|
||||
bit := obj/system.bit
|
||||
$(bit): script/impl.tcl script/init.tcl
|
||||
VSRC_TOP=$(VSRC_TOP) VSRC_CONSTS=$(VSRC_CONSTS) EXTRA_VSRCS="$(EXTRA_VSRCS)" $(VIVADO) $(VIVADOFLAGS) -source script/init.tcl -source script/impl.tcl
|
||||
VSRC_TOP=$(VSRC_TOP) EXTRA_VSRCS="$(EXTRA_VSRCS)" $(VIVADO) $(VIVADOFLAGS) -source script/init.tcl -source script/impl.tcl
|
||||
|
||||
.PHONY: bit
|
||||
bit: $(bit)
|
||||
|
@ -50,15 +50,10 @@ if {[info exists ::env(EXTRA_VSRCS)]} {
|
||||
#}
|
||||
|
||||
set vsrc_top $::env(VSRC_TOP)
|
||||
set vsrc_consts $::env(VSRC_CONSTS)
|
||||
|
||||
set_property verilog_define [list \
|
||||
"VSRC_CONSTS=${vsrc_consts}" \
|
||||
"VSRC_TOP=${vsrc_top}" \
|
||||
] $obj
|
||||
set_property verilog_define [list "VSRC_TOP=${vsrc_top}"] $obj
|
||||
|
||||
add_files -norecurse -fileset $obj $vsrc_top
|
||||
add_files -norecurse -fileset $obj $vsrc_consts
|
||||
|
||||
if {[get_filesets -quiet sim_1] eq ""} {
|
||||
create_fileset -simset sim_1
|
||||
|
@ -1,8 +1,5 @@
|
||||
`timescale 1ns/1ps
|
||||
|
||||
`define STRINGIFY(x) `"x`"
|
||||
`include `STRINGIFY(`VSRC_CONSTS)
|
||||
|
||||
module system
|
||||
(
|
||||
input wire CLK100MHZ,
|
||||
|
Reference in New Issue
Block a user