Skip to content

Commit 49349cf

Browse files
committed
gt2n: add aes design
Signed-off-by: Matthew Guthaus <mrg@ucsc.edu>
1 parent d80ebd2 commit 49349cf

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

‎flow/designs/gt2n/aes/config.mk‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export DESIGN_NICKNAME = aes
2+
export DESIGN_NAME = aes_cipher_top
3+
export PLATFORM = gt2n
4+
5+
export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/$(DESIGN_NICKNAME)/*.v))
6+
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
7+
8+
# AES is bigger than gcd; give the floorplan more room.
9+
export CORE_UTILIZATION = 30
10+
export CORE_ASPECT_RATIO = 1
11+
export CORE_MARGIN = 2
12+
export PLACE_DENSITY_LB_ADDON = 0.20
13+
14+
export TNS_END_PERCENT = 100
15+
# workaround for high congestion in post-grt repair (matches nangate45/aes)
16+
export SKIP_INCREMENTAL_REPAIR = 1
17+
18+
export SWAP_ARITH_OPERATORS = 1
19+
export OPENROAD_HIERARCHICAL = 1
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
current_design aes_cipher_top
2+
3+
set clk_name clk
4+
set clk_port_name clk
5+
# GT2N lib uses time_unit = 1 ps. 500 ps -> 2 GHz target; first-pass
6+
# loose, can tighten once routing is clean.
7+
set clk_period 500
8+
set clk_io_pct 0.2
9+
10+
set clk_port [get_ports $clk_port_name]
11+
12+
create_clock -name $clk_name -period $clk_period $clk_port
13+
14+
set non_clock_inputs [all_inputs -no_clocks]
15+
16+
set_input_delay [expr $clk_period * $clk_io_pct] -clock $clk_name $non_clock_inputs
17+
set_output_delay [expr $clk_period * $clk_io_pct] -clock $clk_name [all_outputs]

0 commit comments

Comments
 (0)