Skip to content
Snippets Groups Projects
Commit baf50d53 authored by Allen Pan's avatar Allen Pan
Browse files

use environment variable for paths

parent 2616f940
No related branches found
No related tags found
No related merge requests found
...@@ -16,13 +16,12 @@ from mflowgen.components import Graph, Step ...@@ -16,13 +16,12 @@ from mflowgen.components import Graph, Step
def construct(): def construct():
g = Graph() g = Graph()
g.sys_path.append( '/farmshare/classes/ee/272' )
#----------------------------------------------------------------------- #-----------------------------------------------------------------------
# Parameters # Parameters
#----------------------------------------------------------------------- #-----------------------------------------------------------------------
adk_name = 'skywater-130nm-adk.v2021' adk_name = 'skywater-130nm-adk-open_pdks'
adk_view = 'view-standard' adk_view = 'view-standard'
parameters = { parameters = {
......
...@@ -16,13 +16,12 @@ from mflowgen.components import Graph, Step ...@@ -16,13 +16,12 @@ from mflowgen.components import Graph, Step
def construct(): def construct():
g = Graph() g = Graph()
g.sys_path.append( '/farmshare/classes/ee/272' )
#----------------------------------------------------------------------- #-----------------------------------------------------------------------
# Parameters # Parameters
#----------------------------------------------------------------------- #-----------------------------------------------------------------------
adk_name = 'skywater-130nm-adk.v2021' adk_name = 'skywater-130nm-adk-open_pdks'
adk_view = 'view-standard' adk_view = 'view-standard'
parameters = { parameters = {
...@@ -75,6 +74,8 @@ def construct(): ...@@ -75,6 +74,8 @@ def construct():
pt_power_rtl = Step( this_dir + '/synopsys-ptpx-rtl' ) pt_power_rtl = Step( this_dir + '/synopsys-ptpx-rtl' )
gl_sim = Step( this_dir + '/open-icarus-simulation' )
magic_drc = Step( this_dir + '/open-magic-drc' ) magic_drc = Step( this_dir + '/open-magic-drc' )
magic_def2spice = Step( this_dir + '/open-magic-def2spice' ) magic_def2spice = Step( this_dir + '/open-magic-def2spice' )
magic_gds2spice = Step( this_dir + '/open-magic-gds2spice' ) magic_gds2spice = Step( this_dir + '/open-magic-gds2spice' )
...@@ -96,7 +97,6 @@ def construct(): ...@@ -96,7 +97,6 @@ def construct():
# gate-level simulation use the same VCS node # gate-level simulation use the same VCS node
rtl_sim = Step( 'synopsys-vcs-sim', default=True ) rtl_sim = Step( 'synopsys-vcs-sim', default=True )
gl_sim = Step( this_dir + '/open-icarus-simulation' )
iflow = Step( 'cadence-innovus-flowsetup', default=True ) iflow = Step( 'cadence-innovus-flowsetup', default=True )
init = Step( 'cadence-innovus-init', default=True ) init = Step( 'cadence-innovus-init', default=True )
...@@ -211,7 +211,6 @@ def construct(): ...@@ -211,7 +211,6 @@ def construct():
g.connect_by_name( rtl, rtl_sim ) # design.v g.connect_by_name( rtl, rtl_sim ) # design.v
g.connect_by_name( testbench, rtl_sim ) # testbench.sv g.connect_by_name( testbench, rtl_sim ) # testbench.sv
g.connect( rtl_sim.o( 'run.vcd' ), gen_saif_rtl.i( 'run.vcd' ) ) g.connect( rtl_sim.o( 'run.vcd' ), gen_saif_rtl.i( 'run.vcd' ) )
# FIXME: VCS sim node generates a VCD file but gives it a VPD extension
g.connect_by_name( sram, rtl_sim ) g.connect_by_name( sram, rtl_sim )
g.connect_by_name( sram, gl_sim ) g.connect_by_name( sram, gl_sim )
...@@ -279,11 +278,11 @@ def construct(): ...@@ -279,11 +278,11 @@ def construct():
g.connect_by_name( magic_def2spice, netgen_lvs_def ) g.connect_by_name( magic_def2spice, netgen_lvs_def )
# LVS using GDS # LVS using GDS
g.connect_by_name( gdsmerge, magic_gds2spice )
g.connect_by_name( signoff, netgen_lvs_gds ) g.connect_by_name( signoff, netgen_lvs_gds )
g.connect_by_name( magic_gds2spice_nobbox, netgen_lvs_gds ) g.connect_by_name( magic_gds2spice_nobbox, netgen_lvs_gds )
# LVS comparision using Calibre with standard cells blackboxed # LVS comparision using Calibre with standard cells blackboxed
g.connect_by_name( gdsmerge, magic_gds2spice )
g.connect_by_name( signoff, calibre_lvs ) g.connect_by_name( signoff, calibre_lvs )
g.connect_by_name( magic_gds2spice, calibre_lvs ) g.connect_by_name( magic_gds2spice, calibre_lvs )
......
...@@ -32,12 +32,12 @@ outputs: ...@@ -32,12 +32,12 @@ outputs:
commands: commands:
# The SRAM macros are cloned from https://github.com/efabless/sky130_sram_macros # The SRAM macros are cloned from https://github.com/efabless/sky130_sram_macros
- cp /farmshare/classes/ee/272/sky130_sram_macros/sky130_sram_1kbyte_1rw1r_32x256_8/sky130_sram_1kbyte_1rw1r_32x256_8.sp outputs/sky130_sram_1kbyte_1rw1r_32x256_8.sp - cp $SRAM_PATH/sky130_sram_1kbyte_1rw1r_32x256_8/sky130_sram_1kbyte_1rw1r_32x256_8.sp outputs/sky130_sram_1kbyte_1rw1r_32x256_8.sp
- cp /farmshare/classes/ee/272/sky130_sram_macros/sky130_sram_1kbyte_1rw1r_32x256_8/sky130_sram_1kbyte_1rw1r_32x256_8.lvs.sp outputs/sky130_sram_1kbyte_1rw1r_32x256_8.lvs.sp - cp $SRAM_PATH/sky130_sram_1kbyte_1rw1r_32x256_8/sky130_sram_1kbyte_1rw1r_32x256_8.lvs.sp outputs/sky130_sram_1kbyte_1rw1r_32x256_8.lvs.sp
- cp /farmshare/classes/ee/272/sky130_sram_macros/sky130_sram_1kbyte_1rw1r_32x256_8/sky130_sram_1kbyte_1rw1r_32x256_8.v outputs/sky130_sram_1kbyte_1rw1r_32x256_8.v - cp $SRAM_PATH/sky130_sram_1kbyte_1rw1r_32x256_8/sky130_sram_1kbyte_1rw1r_32x256_8.v outputs/sky130_sram_1kbyte_1rw1r_32x256_8.v
- cp /farmshare/classes/ee/272/sky130_sram_macros/sky130_sram_1kbyte_1rw1r_32x256_8/sky130_sram_1kbyte_1rw1r_32x256_8.lef outputs/sky130_sram_1kbyte_1rw1r_32x256_8.lef - cp $SRAM_PATH/sky130_sram_1kbyte_1rw1r_32x256_8/sky130_sram_1kbyte_1rw1r_32x256_8.lef outputs/sky130_sram_1kbyte_1rw1r_32x256_8.lef
- cp /farmshare/classes/ee/272/sky130_sram_macros/sky130_sram_1kbyte_1rw1r_32x256_8/sky130_sram_1kbyte_1rw1r_32x256_8_TT_1p8V_25C.lib outputs/sky130_sram_1kbyte_1rw1r_32x256_8_TT_1p8V_25C.lib - cp $SRAM_PATH/sky130_sram_1kbyte_1rw1r_32x256_8/sky130_sram_1kbyte_1rw1r_32x256_8_TT_1p8V_25C.lib outputs/sky130_sram_1kbyte_1rw1r_32x256_8_TT_1p8V_25C.lib
- cp /farmshare/classes/ee/272/sky130_sram_macros/sky130_sram_1kbyte_1rw1r_32x256_8/sky130_sram_1kbyte_1rw1r_32x256_8.gds outputs/sky130_sram_1kbyte_1rw1r_32x256_8.gds - cp $SRAM_PATH/sky130_sram_1kbyte_1rw1r_32x256_8/sky130_sram_1kbyte_1rw1r_32x256_8.gds outputs/sky130_sram_1kbyte_1rw1r_32x256_8.gds
- cp /farmshare/classes/ee/272/sky130_sram_macros/sky130_sram_1kbyte_1rw1r_32x256_8/sky130_sram_1kbyte_1rw1r_32x256_8_TT_1p8V_25C.db outputs/sky130_sram_1kbyte_1rw1r_32x256_8_TT_1p8V_25C.db - cp $SRAM_PATH/sky130_sram_1kbyte_1rw1r_32x256_8/sky130_sram_1kbyte_1rw1r_32x256_8_TT_1p8V_25C.db outputs/sky130_sram_1kbyte_1rw1r_32x256_8_TT_1p8V_25C.db
- sed -i '/SHAPE ABUTMENT/d' outputs/sky130_sram_1kbyte_1rw1r_32x256_8.lef - sed -i '/SHAPE ABUTMENT/d' outputs/sky130_sram_1kbyte_1rw1r_32x256_8.lef
setenv PDKPATH /farmshare/classes/ee/272/PDKS/share/pdk/sky130A setenv MFLOWGEN_PATH /farmshare/home/classes/ee/272/PDKs
setenv SRAM_PATH /farmshare/home/classes/ee/272/sky130_sram_macros
setenv PATH /cad/mentor/2019.11/Catapult_Synthesis_10.4b-841621/Mgc_home/bin:$PATH setenv PATH /cad/mentor/2019.11/Catapult_Synthesis_10.4b-841621/Mgc_home/bin:$PATH
setenv PATH /cad/iverilog/bin:$PATH setenv PATH /cad/iverilog/bin:$PATH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment