Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flow/designs/gf12/ca53/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export PLATFORM = gf12
export VERILOG_FILES = $(PLATFORM_DIR)/$(DESIGN_NAME)/rtl/ca53_cpu.v
export SYNTH_NETLIST_FILES = $(PLATFORM_DIR)/$(DESIGN_NAME)/rtl/ca53_cpu.v

export SDC_FILE = $(PLATFORM_DIR)/$(DESIGN_NAME)/sdc/ca53_cpu.sdc
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/ca53/constraint.sdc

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maliberty this was a workaround to change the clock period without touching the platform files. Let me know if I should change directly there.



export ADDITIONAL_LEFS += $(PLATFORM_DIR)/lef/sc9mcpp84_12lp_base_lvt_c14.lef
Expand Down
4 changes: 4 additions & 0 deletions flow/designs/gf12/ca53/constraint.sdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source $::env(PLATFORM_DIR)/ca53_cpu/sdc/ca53_cpu.sdc

set clk_period 1550
create_clock -name clk -period $clk_period [get_ports clk]
Comment on lines +1 to +4

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Redefining a clock using create_clock after sourcing the base SDC (ca53_cpu.sdc) can be highly problematic in STA tools like OpenSTA. When create_clock is called on an existing clock port/name, the tool destroys the original clock object and creates a new one. This action typically clears or invalidates any clock-associated constraints (such as set_input_delay, set_output_delay, set_clock_uncertainty, or set_clock_latency) that were defined in ca53_cpu.sdc and bound to the original clock.

If ca53_cpu.sdc supports a parameterized clock period (e.g., by checking if clk_period is already defined), you should set clk_period before sourcing the SDC. If it does not, you may need to manually re-apply the input/output delays and other clock-dependent constraints after redefining the clock to ensure they are not silently lost.

set clk_period 1550
source $::env(PLATFORM_DIR)/ca53_cpu/sdc/ca53_cpu.sdc

4 changes: 0 additions & 4 deletions flow/designs/gf12/ibex/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ export DESIGN_TYPE = CELL
else
export DESIGN_TYPE = CELL_NODEN
endif

# slack margin to address WC corner
export SETUP_SLACK_MARGIN ?= 180
export HOLD_SLACK_MARGIN ?= 50
2 changes: 1 addition & 1 deletion flow/designs/gf12/ibex/constraint.sdc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ current_design ibex_core

set clk_name core_clock
set clk_port_name clk_i
set clk_period 1020
set clk_period 840
set clk_io_pct 0.2

set clk_port [get_ports $clk_port_name]
Expand Down