Skip to content

Commit

Permalink
Sending 12 SRAMs with potential LVS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-Herrmann committed Oct 20, 2023
1 parent 748641a commit c9fa101
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions openlane/macros/sky130_sram_2kbyte_1rw1r_32x512_8.v
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ module sky130_sram_2kbyte_1rw1r_32x512_8(
parameter RAM_DEPTH = 1 << ADDR_WIDTH;
// FIXME: This delay is arbitrary.
parameter DELAY = 3 ;
parameter VERBOSE = 1 ; //Set to 0 to only display warnings
parameter T_HOLD = 1 ; //Delay to hold dout value after posedge. Value is arbitrary
parameter VERBOSE = 1 ; // LVS checking
parameter T_HOLD = 1 ; // LVS checking

`ifdef USE_POWER_PINS
inout vccd1;
Expand Down
15 changes: 13 additions & 2 deletions openlane/soc/macro.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
sram.sram_blocks\[0\].sram1 1058 2383.47 R0
sram.sram_blocks\[1\].sram1 1058 516.8 MX
sram.sram_blocks\[0\].sram1 566.9 150 R0
sram.sram_blocks\[1\].sram1 566.9 686.692 MX
sram.sram_blocks\[2\].sram1 566.9 1223.384 R0
sram.sram_blocks\[3\].sram1 566.9 1760.076 MX
sram.sram_blocks\[4\].sram1 566.9 2296.768 R0
sram.sram_blocks\[5\].sram1 566.9 2833.46 MX

sram.sram_blocks\[6\].sram1 1550 150 MY
sram.sram_blocks\[7\].sram1 1550 686.692 R180
sram.sram_blocks\[8\].sram1 1550 1223.384 MY
sram.sram_blocks\[9\].sram1 1550 1760.076 R180
sram.sram_blocks\[10\].sram1 1550 2296.768 MY
sram.sram_blocks\[11\].sram1 1550 2833.46 R180
6 changes: 3 additions & 3 deletions verilog/rtl/rtl/soc/modules/sram_wrap.sv
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

module sram_wrap #(
parameter SRAM_BASE_ADDR = 32'h8000_0000,
parameter SRAM_NUM_BLOCKS = 2,
parameter SRAM_NUM_BLOCKS = 12,
parameter SRAM_BLOCK_SIZE = 512,
parameter SRAM_LOG_BLOCK_SIZE = $clog2(SRAM_BLOCK_SIZE),
parameter SRAM_END_ADDR = (SRAM_BASE_ADDR + (SRAM_NUM_BLOCKS * SRAM_BLOCK_SIZE)),
Expand Down Expand Up @@ -78,8 +78,8 @@ module sram_wrap #(
for (int i = 0; i < SRAM_NUM_BLOCKS; i++ )
begin
// CS selection
if ( sram_d_req_i && i == {31'b0, sram_d_cs_addr}) cs_data[i] = 1;
if ( sram_i_req_i && i == {31'b0, sram_i_cs_addr}) cs_inst[i] = 1;
if ( sram_d_req_i && i == {28'b0, sram_d_cs_addr}) cs_data[i] = 1;
if ( sram_i_req_i && i == {28'b0, sram_i_cs_addr}) cs_inst[i] = 1;

if (cs_data_prev[i] == 1'b1) sram_d_rdata_o = sram_d_read_vec[i];
if (cs_inst_prev[i] == 1'b1) sram_i_rdata_o = sram_i_read_vec[i];
Expand Down

0 comments on commit c9fa101

Please sign in to comment.