Skip to content

Commit

Permalink
add defines for sky130 post-syn sim
Browse files Browse the repository at this point in the history
  • Loading branch information
vighneshiyer committed Mar 17, 2023
1 parent 3d9a51e commit 64da39f
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 10 deletions.
1 change: 1 addition & 0 deletions e2e/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
poetry.lock
*.log
obj_dir*
1 change: 0 additions & 1 deletion e2e/configs/par-sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ sim.inputs:
options: ['-timescale=1ns/10ps']
options_meta: append
timing_annotated: false

1 change: 0 additions & 1 deletion e2e/configs/syn-sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ sim.inputs:
options: ['-timescale=1ns/10ps']
options_meta: append
timing_annotated: true

3 changes: 0 additions & 3 deletions e2e/pdks/asap7-a.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ par.innovus.version: "211"

sim.vcs.version: "P-2019.06-SP1"
sim.vcs.verdi_home: "/ecad/tools/synopsys/verdi/P-2019.06-SP2-2"
#sim.vcs.verdi_home: "/ecad/tools/synopsys/verdi/${sim.vcs.version}"
sim.vcs.verdi_home_meta: lazysubst
#sim.vcs.vcs_home: "/ecad/tools/synopsys/vcs/${sim.vcs.version}"
#sim.vcs.vcs_home: lazysubst

lvs.calibre.version: "2022.2_24.16"
drc.calibre.version: "2022.2_24.16"
17 changes: 17 additions & 0 deletions e2e/pdks/sky130-a.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
vlsi.core.technology: "hammer.technology.sky130"
technology.sky130:
sky130A: "/nscratch/vighneshiyer/miniconda3/envs/sky130/share/pdk/sky130A"
sram22_sky130_macros: "/nscratch/sky130/sram22_sky130_macros"
# sky130_nda:

synthesis.genus.version: "211"
par.innovus.version: "211"

sim.vcs.version: "P-2019.06-SP1"
sim.vcs.verdi_home: "/ecad/tools/synopsys/verdi/P-2019.06-SP2-2"
sim.vcs.verdi_home_meta: lazysubst

synthesis.yosys.yosys_bin: "/nscratch/vighneshiyer/miniconda3/envs/sky130/bin/yosys"
par.openroad.openroad_bin: "/nscratch/vighneshiyer/miniconda3/envs/sky130/bin/openroad"
drc.magic.magic_bin: "/nscratch/vighneshiyer/miniconda3/envs/sky130/bin/magic"
lvs.netgen.netgen_bin: "/nscratch/vighneshiyer/miniconda3/envs/sky130/bin/netgen"
10 changes: 5 additions & 5 deletions e2e/src/pass_tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module pass_tb;

reg clk = 0;
always #(5) clk = ~clk;
always #(20) clk = ~clk;

reg in;
wire out;
Expand All @@ -22,7 +22,7 @@ module pass_tb;
in = 0;
repeat(3) @(posedge clk);

#1;
#5;

in = 1;

Expand All @@ -31,17 +31,17 @@ module pass_tb;
end

@(posedge clk);
#1;
#5;

if (out == 0) begin
$display("***Test Failed***");
end

#1;
#5;
in = 0;

@(posedge clk);
#1;
#5;

if (out == 1) begin
$display("***Test Failed***");
Expand Down
4 changes: 4 additions & 0 deletions hammer/technology/sky130/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,7 @@ par.generate_power_straps_options:
power_utilization_met2: 0.05
power_utilization_met4: 0.15
power_utilization_met5: 0.5

sim.inputs:
defines: ["FUNCTIONAL", "UNIT_DELAY=#1"]
defines_meta: append

0 comments on commit 64da39f

Please sign in to comment.