Hi, has anyone been able to add the sram macro fro...
# openlane
c
Hi, has anyone been able to add the sram macro from
dependencies/pdks/sky130B/libs.ref/sky130_sram_macros
to their design in Caravel on mpw-7a? I get
Check whether EXTRA_LEFS is set appropriately
with Caravel, and I get an LVS error when I build OpenLANE by itself. If anyone was able to add the sram macro to their design, please show me the repository or config.tcl.
m
Do you have
EXTRA_LEFS
set in
config.tcl
?
c
Of course. Furthermore, I'm also getting the error
module $not found in merged.nom.lef
. I have copied the .gds, .v and .lef to caravel.
m
Spaces at the end of the line inside the quotes?
❤️ 1
m
$script_dir
has had some issues when used with older versions. Can you do a
puts $::env(EXTRA_LEFS)
afterwards to make sure it's where you expect it to be? You might also check the
config.tcl
file in the
runs/<tag>/
directory. That should contain the expanded version.
Or instead of
$script_dir/../../
, use
$::env(PDK_ROOT)/$::env(PDK)/libs.ref/sky130_sram_macos/
. If you've copied the files to
<design>/caravel
, and your
$script_dir
is
<design>/openlane/<macro>
,
$script_dir/../../
would refer to the
<design>
directory and not
<design>/caravel
. Or have you copied the files to
<design>/verilog/rtl
,
<design>/lef
and
<design>/gds
respectively?
c
Thanks for the reply. I tried using
$::env(PDK_ROOT)/$::env(PDK)/libs.ref/sky130_sram_macos/
but the result did not change.
m
Do you have a gl verilog netlist for
user_project_wrapper
? The one in the repo doesn't appear to match the rtl verilog (one sram instance). I'm thinking that the
$not
module might refer to the inverter needed to create the inverted signal for
Copy code
.csb0   (~wbs_stb_i     ), // active low chip select
        .web0   (~wbs_we_i      ), // active low write control
I think you have SYNTH_TOP_LEVEL set to 1 which won't do synthesis, correct? Maybe instead of inverted signals, you could test with non-inverted signals.
c
The error is gone!!! It was due to the inverter at the top level, as you indicated! Thanks so much for responding, @Mitch Bailey and @Matt Venn!
👍 2