Skip to content

Commit 19538fb

Browse files
authored
Merge pull request The-OpenROAD-Project#3196 from jeffng-or/cva6-sram-256-256
Updated SRAM sizes for asap7 cva6
2 parents c7a0741 + bfdd26f commit 19538fb

File tree

9 files changed

+5451
-15
lines changed

9 files changed

+5451
-15
lines changed

flow/designs/asap7/cva6/config.mk

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,22 @@ export VERILOG_FILES = $(sort $(wildcard $(SRC_HOME)/common/local/util/
6565
$(SRC_HOME)/core/cvxif_example/include/cvxif_instr_pkg.sv \
6666
$(sort $(wildcard $(SRC_HOME)/core/frontend/*.sv)) \
6767
$(SRC_HOME)/vendor/pulp-platform/tech_cells_generic/src/rtl/tc_sram.sv \
68-
$(PLATFORM_DIR)/verilog/fakeram7_256x32.sv
68+
$(PLATFORM_DIR)/verilog/fakeram7_256x256.sv
6969

7070
export VERILOG_INCLUDE_DIRS = $(DESIGN_HOME)/src/$(DESIGN_NICKNAME)/core/include \
7171
$(DESIGN_HOME)/src/$(DESIGN_NICKNAME)/core/cvfpu/src/common_cells/include \
7272
$(DESIGN_HOME)/src/$(DESIGN_NICKNAME)/core/cache_subsystem/hpdcache/rtl/include
7373

7474
export VERILOG_DEFINES += -D HPDCACHE_ASSERT_OFF
7575

76-
export ADDITIONAL_LEFS = $(PLATFORM_DIR)/lef/fakeram7_256x32.lef
76+
export ADDITIONAL_LEFS = $(PLATFORM_DIR)/lef/fakeram7_256x256.lef
7777

78-
export ADDITIONAL_LIBS = $(PLATFORM_DIR)/lib/NLDM/fakeram7_256x32.lib
78+
export ADDITIONAL_LIBS = $(PLATFORM_DIR)/lib/NLDM/fakeram7_256x256.lib
7979

8080
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NAME)/constraint.sdc
8181

82-
export DIE_AREA = 0 0 250 250
83-
export CORE_AREA = 1.08 1.08 240 240
84-
82+
export DIE_AREA = 0 0 350 350
83+
export CORE_AREA = 1.08 1.08 340 340
8584
export PLACE_DENSITY = 0.50
8685

8786
# a smoketest for this option, there are a

flow/designs/asap7/cva6/rules-base.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
{
22
"synth__design__instance__area__stdcell": {
3-
"value": 16477.72,
3+
"value": 40692.1,
44
"compare": "<="
55
},
66
"constraints__clocks__count": {
77
"value": 1,
88
"compare": "=="
99
},
1010
"placeopt__design__instance__area": {
11-
12-
"value": 19790,
11+
"value": 45043,
1312
"compare": "<="
1413
},
1514
"placeopt__design__instance__count__stdcell": {
16-
"value": 130789,
15+
"value": 164118,
1716
"compare": "<="
1817
},
1918
"detailedplace__design__violations": {
@@ -53,7 +52,7 @@
5352
"compare": ">="
5453
},
5554
"finish__design__instance__area": {
56-
"value": 20112,
55+
"value": 45315,
5756
"compare": "<="
5857
},
5958
"finish__timing__drv__setup_violation_count": {

flow/designs/src/cva6/common/local/util/sram_cache.sv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module sram_cache #(
5252
rdata_o = rdata_user[DATA_AND_USER_WIDTH-1:DATA_WIDTH];
5353
ruser_o = rdata_user[USER_WIDTH-1:0];
5454
end
55-
fakeram7_256x32 i_tc_sram_wrapper(
55+
fakeram7_256x256 i_tc_sram_wrapper(
5656
.clk ( clk_i ),
5757
.ce_in ( req_i ),
5858
.we_in ( we_i ),
@@ -91,7 +91,7 @@ module sram_cache #(
9191
rdata_o = rdata_user;
9292
ruser_o = '0;
9393
end
94-
fakeram7_256x32 i_tc_sram_wrapper(
94+
fakeram7_256x256 i_tc_sram_wrapper(
9595
.clk ( clk_i ),
9696
.ce_in ( req_i ),
9797
.we_in ( we_i ),

flow/designs/src/cva6/core/cache_subsystem/hpdcache/rtl/src/common/hpdcache_sram.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module hpdcache_sram
3939
output logic [DATA_SIZE-1:0] rdata
4040
);
4141

42-
fakeram7_256x32 ram_i (
42+
fakeram7_256x256 ram_i (
4343
.clk(clk),
4444
.ce_in(cs),
4545
.we_in(we),

flow/designs/src/cva6/core/cache_subsystem/hpdcache/rtl/src/common/hpdcache_sram_wbyteenable.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module hpdcache_sram_wbyteenable
3939
input logic [DATA_SIZE/8-1:0] wbyteenable,
4040
output logic [DATA_SIZE-1:0] rdata
4141
);
42-
fakeram7_256x32 ram_i (
42+
fakeram7_256x256 ram_i (
4343
.clk (clk),
4444
.ce_in(cs),
4545
.we_in(we),

0 commit comments

Comments
 (0)