From 6a4bcaab38411ed30ee6111d8ab2defa9717c55a Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Tue, 22 Sep 2020 22:13:59 -0700 Subject: [PATCH] Add timing constraints for LED driver --- example/fb2CG/fpga_10g/fpga/Makefile | 1 + example/fb2CG/fpga_10g/led.tcl | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 example/fb2CG/fpga_10g/led.tcl diff --git a/example/fb2CG/fpga_10g/fpga/Makefile b/example/fb2CG/fpga_10g/fpga/Makefile index d7bfcf66..bfce2fc9 100644 --- a/example/fb2CG/fpga_10g/fpga/Makefile +++ b/example/fb2CG/fpga_10g/fpga/Makefile @@ -49,6 +49,7 @@ SYN_FILES += lib/eth/lib/axis/rtl/sync_reset.v # XDC files XDC_FILES = fpga.xdc +XDC_FILES += led.tcl XDC_FILES += lib/eth/syn/eth_mac_fifo.tcl XDC_FILES += lib/eth/lib/axis/syn/axis_async_fifo.tcl XDC_FILES += lib/eth/lib/axis/syn/sync_reset.tcl diff --git a/example/fb2CG/fpga_10g/led.tcl b/example/fb2CG/fpga_10g/led.tcl new file mode 100644 index 00000000..e430903e --- /dev/null +++ b/example/fb2CG/fpga_10g/led.tcl @@ -0,0 +1,12 @@ +# Timing constraints for led_sreg_driver + +foreach inst [get_cells -hier -filter {(ORIG_REF_NAME == led_sreg_driver || REF_NAME == led_sreg_driver)}] { + puts "Inserting timing constraints for led_sreg_driver instance $inst" + + set select_ffs [get_cells "$inst/led_sync_reg_1_reg[*] $inst/led_sync_reg_2_reg[*]"] + + if {[llength $select_ffs]} { + set_property ASYNC_REG TRUE $select_ffs + set_false_path -from [all_registers] -to [get_cells "$inst/led_sync_reg_1_reg[*]"] + } +}