mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-30 02:32:53 +08:00
Apply CFG_ASIC at the top level
Commit 381ba09 adds CFG_ASIC as a primary variable. This commit allows this to be set in the system_build.tcl script at build time Signed-off-by: Peter Saunderson <peteasa@gmail.com>
This commit is contained in:
parent
aac3d5b3a2
commit
55118cee9d
@ -11,6 +11,14 @@ make_wrapper -files [get_files $projdir/${design}.srcs/sources_1/bd/system/syste
|
||||
remove_files -fileset sources_1 $projdir/${design}.srcs/sources_1/bd/system/hdl/system_wrapper.v
|
||||
add_files -fileset sources_1 -norecurse $projdir/${design}.srcs/sources_1/bd/system/hdl/system_wrapper.v
|
||||
|
||||
###########################################################
|
||||
# PREPARE FOR SYNTHESIS
|
||||
###########################################################
|
||||
if {[info exists oh_synthesis_options]} {
|
||||
puts "INFO: Synthesis with following options: $oh_synthesis_options"
|
||||
set_property -name {STEPS.SYNTH_DESIGN.ARGS.MORE OPTIONS} -value $oh_synthesis_options -objects [get_runs synth_1]
|
||||
}
|
||||
|
||||
###########################################################
|
||||
# SYNTHESIS
|
||||
###########################################################
|
||||
|
@ -20,3 +20,8 @@ set constraints_files [list \
|
||||
../parallella_timing.xdc \
|
||||
../parallella_io.xdc \
|
||||
]
|
||||
|
||||
###########################################################
|
||||
# PREPARE FOR SYNTHESIS
|
||||
###########################################################
|
||||
set oh_synthesis_options "-verilog_define CFG_ASIC=0"
|
||||
|
@ -21,3 +21,8 @@ set constraints_files [list \
|
||||
../parallella_io.xdc \
|
||||
../parallella_7020_io.xdc \
|
||||
]
|
||||
|
||||
###########################################################
|
||||
# PREPARE FOR SYNTHESIS
|
||||
###########################################################
|
||||
set oh_synthesis_options "-verilog_define CFG_ASIC=0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user