sync: Set ASYNC_REG in HDL instead of TCL

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2025-04-28 20:03:38 -07:00
parent 577c572c5d
commit 3401e069d1
4 changed files with 2 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ module taxi_sync_reset #
output wire logic out
);
(* srl_style = "register" *)
(* async_reg="true", srl_style="register", shreg_extract="no" *)
logic [N-1:0] sync_reg = '1;
assign out = sync_reg[N-1];

View File

@@ -29,7 +29,7 @@ module taxi_sync_signal #(
output wire logic [WIDTH-1:0] out
);
(* srl_style = "register" *)
(* async_reg="true", srl_style="register", shreg_extract="no" *)
logic [WIDTH-1:0] sync_reg[N-1:0];
assign out = sync_reg[N-1];

View File

@@ -14,6 +14,5 @@ foreach inst [get_cells -hier -filter {(ORIG_REF_NAME == taxi_sync_reset || REF_
# reset synchronization
set reset_ffs [get_cells -quiet -hier "sync_reg_reg[*]" -filter "PARENT == $inst"]
set_property ASYNC_REG TRUE $reset_ffs
set_false_path -to [get_pins -of_objects $reset_ffs -filter {IS_PRESET || IS_RESET}]
}

View File

@@ -11,6 +11,5 @@
foreach inst [get_cells -hier -filter {(ORIG_REF_NAME == taxi_sync_signal || REF_NAME == taxi_sync_signal)}] {
puts "Inserting timing constraints for taxi_sync_signal instance $inst"
set_property ASYNC_REG TRUE [get_cells -hier "sync_reg_reg[*][*]" -filter "PARENT == $inst"]
set_false_path -to [get_cells -hier "sync_reg_reg[0][*]" -filter "PARENT == $inst"]
}