Skip to content

Commit

Permalink
Merge pull request #636 from P-Miranda/main
Browse files Browse the repository at this point in the history
fix(netlist): read .sdc from hw/fpga/src
  • Loading branch information
jjts authored Nov 10, 2023
2 parents 8be1e74 + 0bad3cb commit 587e582
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion submodules/LIB/hardware/fpga/quartus/build.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if {$IS_FPGA != "1"} {

#read synthesis design constraints
set_global_assignment -name SDC_FILE ./quartus/$BOARD/$NAME\_dev.sdc
set_global_assignment -name SDC_FILE ../src/$NAME.sdc
set_global_assignment -name SDC_FILE ./src/$NAME.sdc

set_global_assignment -name SYNCHRONIZER_IDENTIFICATION "Forced if Asynchronous"

Expand Down
4 changes: 2 additions & 2 deletions submodules/LIB/hardware/fpga/vivado/build.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if {[file exists "vivado/premap.tcl"]} {
if { $IS_FPGA == "1" } {
puts "Synthesizing for FPGA"
read_xdc vivado/$BOARD/$NAME\_dev.sdc
read_xdc ../src/$NAME.sdc
read_xdc src/$NAME.sdc
if {[file exists "../src/$NAME\_$CSR_IF.sdc"]} {
read_xdc ../src/$NAME\_$CSR_IF.sdc
}
Expand All @@ -56,7 +56,7 @@ if { $IS_FPGA == "1" } {
#read design constraints
puts "Out of context synthesis"
read_xdc -mode out_of_context vivado/$BOARD/$NAME\_dev.sdc
read_xdc -mode out_of_context ../src/$NAME.sdc
read_xdc -mode out_of_context src/$NAME.sdc
if {[file exists "vivado/$NAME\_tool.sdc"]} {
read_xdc -mode out_of_context vivado/$NAME\_tool.sdc
}
Expand Down
4 changes: 2 additions & 2 deletions submodules/LIB/hardware/syn/build.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ check_design -unresolved
# add optimization constraints
#----------------------------------------------------------------------
read_sdc -stop_on_error ./$NODE/$NAME\_dev.sdc
read_sdc -stop_on_error ../src/$NAME.sdc
read_sdc -stop_on_error ../src/$NAME\_$CSR_IF.sdc
read_sdc -stop_on_error ./src/$NAME.sdc
read_sdc -stop_on_error ./src/$NAME\_$CSR_IF.sdc
read_sdc -stop_on_error ./$NAME\_tool.sdc

check_timing_intent
Expand Down

0 comments on commit 587e582

Please sign in to comment.