Skip to content

Commit

Permalink
Add 1-byte data 1kbyte SRAM macro
Browse files Browse the repository at this point in the history
  • Loading branch information
mguthaus committed Apr 19, 2021
1 parent a6f42a6 commit 41be8c5
Show file tree
Hide file tree
Showing 15 changed files with 33,434 additions and 0 deletions.
24 changes: 24 additions & 0 deletions sky130_sram_1kbytes_1rw1r_8x1024_8/.magicrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
puts stdout "Sourcing design .magicrc for technology sky130A ..."

# Put grid on 0.005 pitch. This is important, as some commands don't
# rescale the grid automatically (such as lef read?).

set scalefac [tech lambda]
if {[lindex $scalefac 1] < 2} {
scalegrid 1 2
}

# Hack to add the tech path
set openram_paths [split $::env(OPENRAM_TECH) ":"]
foreach p $openram_paths {
path sys +$p/sky130/tech
}
# drc off
drc euclidean on
set SUB gnd

# loading technology
tech load sky130A.tech

# set units to lambda grid
#snap lambda
3,438 changes: 3,438 additions & 0 deletions sky130_sram_1kbytes_1rw1r_8x1024_8/functional_stim.sp

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions sky130_sram_1kbytes_1rw1r_8x1024_8/run_drc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/sh
export OPENRAM_TECH="/home/mrg/openram/technology:/home/mrg/data/sky130_fd_bd_sram/tools/openram/technology"
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__openram_dp_cell.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__openram_dp_cell_dummy.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__openram_dp_cell_replica.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_cell_opt1a.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__openram_sp_cell_opt1a_dummy.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_cell_opt1_ce.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_cell_opt1.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__openram_sp_cell_opt1_replica.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__openram_sp_cell_opt1a_replica.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_colend.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_colend_cent.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_colend_p_cent.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_colenda.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_colenda_cent.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_colenda_p_cent.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_rowend.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_rowenda.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__openram_sp_rowend_replica.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__openram_sp_rowenda_replica.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_corner.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_cornera.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_cornerb.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_wlstrapa.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_wlstrap_ce.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_wlstrap.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_wlstrap_p_ce.mag .
cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__sram_sp_wlstrap_p.mag .
echo "$(date): Starting DRC using Magic /usr/local/bin/magic"

/usr/local/bin/magic -dnull -noconsole << EOF
load sky130_sram_1kbytes_1rw1r_8x1024_8 -dereference
puts "Finished loading cell sky130_sram_1kbytes_1rw1r_8x1024_8"
cellname delete \(UNNAMED\)
select top cell
expand
puts "Finished expanding"
drc euclidean on
drc check
puts "Finished drc check"
drc catchup
puts "Finished drc catchup"
drc count total
quit -noprompt
EOF
magic_retcode=$?
echo "$(date): Finished ($magic_retcode) DRC using Magic /usr/local/bin/magic"
exit $magic_retcode
39 changes: 39 additions & 0 deletions sky130_sram_1kbytes_1rw1r_8x1024_8/run_ext.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/sh
export OPENRAM_TECH="/home/mrg/openram/technology:/home/mrg/data/sky130_fd_bd_sram/tools/openram/technology"
echo "$(date): Starting GDS to MAG using Magic /usr/local/bin/magic"

/usr/local/bin/magic -dnull -noconsole << EOF
drc off
gds polygon subcell true
gds warning default
gds flatten true
gds ordering true
gds readonly true
gds read sky130_sram_1kbytes_1rw1r_8x1024_8.gds
puts "Finished reading gds sky130_sram_1kbytes_1rw1r_8x1024_8.gds"
load sky130_sram_1kbytes_1rw1r_8x1024_8
puts "Finished loading cell sky130_sram_1kbytes_1rw1r_8x1024_8"
cellname delete \(UNNAMED\)
writeall force
port makeall
extract unique all
extract style ngspice(si)
extract
puts "Finished extract"
ext2spice hierarchy on
ext2spice format ngspice
ext2spice cthresh infinite
ext2spice rthresh infinite
ext2spice renumber off
ext2spice scale off
ext2spice blackbox on
ext2spice subcircuit top on
ext2spice global off
ext2spice format ngspice
ext2spice sky130_sram_1kbytes_1rw1r_8x1024_8
puts "Finished ext2spice"
quit -noprompt
EOF
magic_retcode=$?
echo "$(date): Finished ($magic_retcode) GDS to MAG using Magic /usr/local/bin/magic"
exit $magic_retcode
10 changes: 10 additions & 0 deletions sky130_sram_1kbytes_1rw1r_8x1024_8/run_lvs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
export OPENRAM_TECH="/home/mrg/openram/technology:/home/mrg/data/sky130_fd_bd_sram/tools/openram/technology"
echo "$(date): Starting LVS using Netgen /usr/local/bin/netgen"
/usr/local/bin/netgen -noconsole << EOF
lvs {sky130_sram_1kbytes_1rw1r_8x1024_8.spice sky130_sram_1kbytes_1rw1r_8x1024_8} {sky130_sram_1kbytes_1rw1r_8x1024_8.lvs.sp sky130_sram_1kbytes_1rw1r_8x1024_8} setup.tcl sky130_sram_1kbytes_1rw1r_8x1024_8.lvs.report -full -json
quit
EOF
magic_retcode=$?
echo "$(date): Finished ($magic_retcode) LVS using Netgen /usr/local/bin/netgen"
exit $magic_retcode
Loading

0 comments on commit 41be8c5

Please sign in to comment.