Skip to content

Commit

Permalink
Changes to lef creation to avoid magic bug and reram addtions.
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-bailey committed Apr 19, 2024
1 parent 4f4dd88 commit e770336
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions scripts/be_checks/lvs_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Required variables:
- **TOP_SOURCE** : Top source cell name.
- **TOP_LAYOUT** : Top layout cell name.
- **LAYOUT_FILE** : Layout gds data file.
- **LVS_SPICE_FILES_TO_FIX** : A list of spice files that work with mag extraction but need to be modified for gds extraction.
- **LVS_SPICE_FILES** : A list of spice files.
- **LVS_VERILOG_FILES** : A list of verilog files. Note: files with child modules should be listed before parent modules. Not needed for purely analog designs.

Expand Down
2 changes: 1 addition & 1 deletion scripts/be_checks/run_extract
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ foreach cell { $ABSTRACT_CELLS } { ;# Set abstract cells and delete all their su
}
}
lef nocheck vssd1 vssd2 vccd1 vccd2 vssa1 vssa2 vdda1 vdda2
lef write \$cell -hide 10um -pinonly 10um
lef write \$cell -hide -pinonly
}
}
set current_time [orig_clock seconds]
Expand Down
7 changes: 4 additions & 3 deletions scripts/be_checks/run_hier_check
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ if [[ $(echo $SOURCE_FILES | wc -w) -gt 0 ]]; then

sed '/^[ ]*module[ ].*[^ ](/s/(/ (/' $(echo $SOURCE_FILES) |
awk -v top=$TOP_SOURCE '
$1 ~ /^\/\*/ {
$1 ~ /^\/\*/ { # skip block comments
while ( ! /\*\// ) {
getline;
}
Expand All @@ -80,16 +80,17 @@ if [[ $(echo $SOURCE_FILES | wc -w) -gt 0 ]]; then
if ( $2 in modules ) {
print "Duplicate module definition", $2 > "'$WORK_ROOT/hier.log'";
}
modules[$2] = 1;
if ( ! ( $2 in cells ) ) {
cells[$2] = 1;
}
module = $2;
next;
}
$1 ~ /^\/\// {
$1 ~ /^[ ]*\/\// { # skip single line comments
next;
}
/ \(/ && ! /^[ ]*\/\*/ {
/ \(/ && $1 !~ /^\./ {
key = module "/" $1;
if ( ! ( $1 in cells ) ) {
cells[$1] = 1;
Expand Down
1 change: 1 addition & 0 deletions scripts/be_checks/tech/sky130B/cvc.models
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ R sky130_fd_pr__res_high_po_1p41 R=l/1.41*300
R sky130_fd_pr__res_high_po_2p85 R=l/2.85*300
R sky130_fd_pr__res_high_po_5p73 R=l/5.73*300
R sky130_fd_pr__res_iso_pw R=l/w*4400
R sky130_fd_pr_reram__reram_cell R=10
R sky130_fd_pr__reram_reram_cell R=10

MN sky130_fd_pr__nfet_01v8 Vth=0.2 Vgs=1.8 Vds=1.8
Expand Down
1 change: 1 addition & 0 deletions scripts/be_checks/tech/sky130B/known_abstract_filter.awk
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
/__tapvpwrvgnd_/ {next}
/__fakediode_/ {next}
/sky130_fd_pr__/ {next} # ignore primitive devices
/sky130_fd_pr_reram__/ {next} # ignore primitive reram devices
{ print }
2 changes: 1 addition & 1 deletion scripts/be_checks/tech/sky130B/spi2cdl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ awk '
print "R" $0, "$SUB=" bulk;
next;
}
/^X.*sky130_fd_pr__reram_reram_cell.*=/ {
/^X.*sky130_fd_pr.*_reram_cell.*=/ {
print "R" $0;
next;
}
Expand Down

0 comments on commit e770336

Please sign in to comment.