Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing terminal in transistors in .cdl files #194

Closed
msaligane opened this issue Oct 27, 2020 · 7 comments · Fixed by #196
Closed

missing terminal in transistors in .cdl files #194

msaligane opened this issue Oct 27, 2020 · 7 comments · Fixed by #196
Labels
files-netlist-cdl Issues related to netlist Circuit Description Language files. lib-sky130_fd_sc_hd Issues with the "high density" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_hdll Issues with the "high density low leakage" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_hs Issues with the "high speed" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_hvl Issues with the "high voltage" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_lp Issues with the "low power" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_ls Issues with the "low speed" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_ms Issues with the "medium speed" digital standard cells provided by the SkyWater foundry. type-bug Something isn't working

Comments

@msaligane
Copy link
Collaborator

Expected Behavior

Correct syntax:

.SUBCKT sky130_fd_sc_hd__inv_16 A VGND VNB VPB VPWR Y
*.PININFO A:I VGND:I VNB:I VPB:I VPWR:I Y:O
MMIN1 Y A **VGND** VNB nshort m=16 w=0.65 l=0.15 mult=1 sa=0.265 sb=0.265
+ sd=0.28 topography=normal area=0.063 perim=1.14
MMIP1 Y A **VPWR** VPB phighvt m=16 w=1.0 l=0.15 mult=1 sa=0.265 sb=0.265
+ sd=0.28 topography=normal area=0.063 perim=1.14
.ENDS sky130_fd_sc_hd__inv_16

Actual Behavior

In the .cdl files the transistors are missing s terminal. Issue is noticed in hs and hd libs.
The .spice files seems to be correct.
See example:

.SUBCKT sky130_fd_sc_hd__inv_16 A VGND VNB VPB VPWR Y
*.PININFO A:I VGND:I VNB:I VPB:I VPWR:I Y:O
MMIN1 Y A VNB nshort m=16 w=0.65 l=0.15 mult=1 sa=0.265 sb=0.265
+ sd=0.28 topography=normal area=0.063 perim=1.14
MMIP1 Y A VPB phighvt m=16 w=1.0 l=0.15 mult=1 sa=0.265 sb=0.265
+ sd=0.28 topography=normal area=0.063 perim=1.14
.ENDS sky130_fd_sc_hd__inv_16
@msaligane
Copy link
Collaborator Author

@mithro @RTimothyEdwards FYI.

@mithro
Copy link
Contributor

mithro commented Oct 27, 2020

I /think/ this is related to issue #191 which was fixed for sky130_fd_pr library in #193

It appears the same needs to be done for the standard cell libraries.

@mithro mithro added files-netlist-cdl Issues related to netlist Circuit Description Language files. lib-sky130_fd_sc_hd Issues with the "high density" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_hdll Issues with the "high density low leakage" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_hs Issues with the "high speed" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_ms Issues with the "medium speed" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_ls Issues with the "low speed" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_lp Issues with the "low power" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_hvl Issues with the "high voltage" digital standard cells provided by the SkyWater foundry. type-bug Something isn't working labels Oct 27, 2020
@mithro
Copy link
Contributor

mithro commented Oct 28, 2020

Does this look right?

* Copyright 2020 The SkyWater PDK Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
.SUBCKT sky130_fd_sc_hd__a22oi_1 A1 A2 B1 B2 VGND VNB VPB VPWR Y
*.PININFO A1:I A2:I B1:I B2:I VGND:I VNB:I VPB:I VPWR:I Y:O
MMPA0 pndA A1 VPWR VPB pfet_01v8_hvt m=1 w=1.0 l=0.15 mult=1 sa=0.265
+ sb=0.265 sd=0.28 topography=normal area=0.063 perim=1.14
MMPA1 pndA A2 VPWR VPB pfet_01v8_hvt m=1 w=1.0 l=0.15 mult=1 sa=0.265
+ sb=0.265 sd=0.28 topography=normal area=0.063 perim=1.14
MMPB0 Y B1 pndA VPB pfet_01v8_hvt m=1 w=1.0 l=0.15 mult=1 sa=0.265
+ sb=0.265 sd=0.28 topography=normal area=0.063 perim=1.14
MMPB1 Y B2 pndA VPB pfet_01v8_hvt m=1 w=1.0 l=0.15 mult=1 sa=0.265
+ sb=0.265 sd=0.28 topography=normal area=0.063 perim=1.14
MMNA0 Y A1 sndA1 VNB nfet_01v8 m=1 w=0.65 l=0.15 mult=1 sa=0.265
+ sb=0.265 sd=0.28 topography=normal area=0.063 perim=1.14
MMNA1 sndA1 A2 VGND VNB nfet_01v8 m=1 w=0.65 l=0.15 mult=1 sa=0.265
+ sb=0.265 sd=0.28 topography=normal area=0.063 perim=1.14
MMNB0 Y B1 sndB1 VNB nfet_01v8 m=1 w=0.65 l=0.15 mult=1 sa=0.265
+ sb=0.265 sd=0.28 topography=normal area=0.063 perim=1.14
MMNB1 sndB1 B2 VGND VNB nfet_01v8 m=1 w=0.65 l=0.15 mult=1 sa=0.265
+ sb=0.265 sd=0.28 topography=normal area=0.063 perim=1.14
.ENDS sky130_fd_sc_hd__a22oi_1

@msaligane
Copy link
Collaborator Author

msaligane commented Oct 28, 2020

Yes, seems like all the transistors have the 4 terminals now (d g s b)

@mithro
Copy link
Contributor

mithro commented Oct 29, 2020

@msaligane - Can you take a look over https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_hd/+/refs/heads/branch-0.0.1%5E%21/ and confirm it looks right? If so, I'll push the changes for the other standard cell libraries.

@msaligane
Copy link
Collaborator Author

@mithro Looks good to me. Skimmed over a few cells and they look fine. I will probably use the libs again soon for my designs and I can flag if I see any issues.

mithro added a commit to mithro/skywater-pdk that referenced this issue Oct 29, 2020
Three fixes applied to all standard cell libraries;
 * lef: Fixing VNB/VPB properties in .magic.lef files, fixes google#172.
 * verilog: Fixing power pins usage in non-powerpin mode, fixes google#181.
 * cdl: Fixing missing terminals, fixes google#194.

Updating submodules on 2020-10-29 19:19:47 UTC

 - Updating [`sky130_fd_sc_hd` latest](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_hd/+/v0.0.2-40-g836b7fa01..v0.0.2-46-g8d095dc6f) to v0.0.2-46-g8d095dc6f
 - Updating [`sky130_fd_sc_hd` v0.0.1](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_hd/+/v0.0.1-20-g01fde9a43..v0.0.1-23-g3aaa84ef4) to v0.0.1-23-g3aaa84ef4
 - Updating [`sky130_fd_sc_hd` v0.0.2](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_hd/+/v0.0.2-40-g836b7fa01..v0.0.2-46-g8d095dc6f) to v0.0.2-46-g8d095dc6f
 - Updating [`sky130_fd_sc_hdll` latest](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_hdll/+/v0.1.1-44-g7abde00cd..v0.1.1-50-g77450af72) to v0.1.1-50-g77450af72
 - Updating [`sky130_fd_sc_hdll` v0.1.0](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_hdll/+/v0.1.0-22-g05d4cd52..v0.1.0-25-g82ea1266) to v0.1.0-25-g82ea1266
 - Updating [`sky130_fd_sc_hdll` v0.1.1](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_hdll/+/v0.1.1-44-g7abde00cd..v0.1.1-50-g77450af72) to v0.1.1-50-g77450af72
 - Updating [`sky130_fd_sc_hs` latest](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_hs/+/v0.0.2-40-gd1e4650c3..v0.0.2-46-g2d165a2ff) to v0.0.2-46-g2d165a2ff
 - Updating [`sky130_fd_sc_hs` v0.0.1](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_hs/+/v0.0.1-20-ga13469d26..v0.0.1-23-gb81bfbb8d) to v0.0.1-23-gb81bfbb8d
 - Updating [`sky130_fd_sc_hs` v0.0.2](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_hs/+/v0.0.2-40-gd1e4650c3..v0.0.2-46-g2d165a2ff) to v0.0.2-46-g2d165a2ff
 - Updating [`sky130_fd_sc_ls` latest](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_ls/+/v0.1.1-42-g26dc99426..v0.1.1-48-gedfe6c90b) to v0.1.1-48-gedfe6c90b
 - Updating [`sky130_fd_sc_ls` v0.1.0](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_ls/+/v0.1.0-21-gd8c271782..v0.1.0-24-g72e0ddf7a) to v0.1.0-24-g72e0ddf7a
 - Updating [`sky130_fd_sc_ls` v0.1.1](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_ls/+/v0.1.1-42-g26dc99426..v0.1.1-48-gedfe6c90b) to v0.1.1-48-gedfe6c90b
 - Updating [`sky130_fd_sc_ms` latest](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_ms/+/v0.0.2-42-gec746c6bf..v0.0.2-48-g175daa5e8) to v0.0.2-48-g175daa5e8
 - Updating [`sky130_fd_sc_ms` v0.0.1](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_ms/+/v0.0.1-21-ge9d513d1f..v0.0.1-24-ga2ecab114) to v0.0.1-24-ga2ecab114
 - Updating [`sky130_fd_sc_ms` v0.0.2](https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_sc_ms/+/v0.0.2-42-gec746c6bf..v0.0.2-48-g175daa5e8) to v0.0.2-48-g175daa5e8

 * libraries/sky130_fd_sc_hd/latest 836b7fa...8d095dc (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

 * libraries/sky130_fd_sc_hd/v0.0.1 01fde9a...3aaa84e (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

 * libraries/sky130_fd_sc_hd/v0.0.2 836b7fa...8d095dc (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

 * libraries/sky130_fd_sc_hdll/latest 7abde00...77450af (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

 * libraries/sky130_fd_sc_hdll/v0.1.0 05d4cd5...82ea126 (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

 * libraries/sky130_fd_sc_hdll/v0.1.1 7abde00...77450af (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

 * libraries/sky130_fd_sc_hs/latest d1e4650...2d165a2 (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

 * libraries/sky130_fd_sc_hs/v0.0.1 a13469d...b81bfbb (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

 * libraries/sky130_fd_sc_hs/v0.0.2 d1e4650...2d165a2 (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

 * libraries/sky130_fd_sc_ls/latest 26dc994...edfe6c9 (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

 * libraries/sky130_fd_sc_ls/v0.1.0 d8c2717...72e0ddf (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

 * libraries/sky130_fd_sc_ls/v0.1.1 26dc994...edfe6c9 (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

 * libraries/sky130_fd_sc_ms/latest ec746c6...175daa5 (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

 * libraries/sky130_fd_sc_ms/v0.0.1 e9d513d...a2ecab1 (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

 * libraries/sky130_fd_sc_ms/v0.0.2 ec746c6...175daa5 (3):
   > lef: Fixing VNB/VPB properties in .magic.lef files.
   > verilog: Fixing power pins usage in non-powerpin mode.
   > cdl: Fixing missing terminals.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
@mithro
Copy link
Contributor

mithro commented Oct 30, 2020

This should be fixed as #196 is now merged.

mithro added a commit to google/skywater-pdk-libs-sky130_fd_sc_hd that referenced this issue Dec 10, 2020
Fixes google/skywater-pdk#194

Signed-off-by: Tim 'mithro' Ansell <tansell@google.com>
mithro added a commit to google/skywater-pdk-libs-sky130_fd_sc_hd that referenced this issue Dec 10, 2020
Fixes google/skywater-pdk#194

Signed-off-by: Tim 'mithro' Ansell <tansell@google.com>
mithro added a commit to google/skywater-pdk-libs-sky130_fd_sc_hdll that referenced this issue Dec 10, 2020
Fixes google/skywater-pdk#194

Signed-off-by: Tim 'mithro' Ansell <tansell@google.com>
mithro added a commit to google/skywater-pdk-libs-sky130_fd_sc_hdll that referenced this issue Dec 10, 2020
Fixes google/skywater-pdk#194

Signed-off-by: Tim 'mithro' Ansell <tansell@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
files-netlist-cdl Issues related to netlist Circuit Description Language files. lib-sky130_fd_sc_hd Issues with the "high density" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_hdll Issues with the "high density low leakage" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_hs Issues with the "high speed" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_hvl Issues with the "high voltage" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_lp Issues with the "low power" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_ls Issues with the "low speed" digital standard cells provided by the SkyWater foundry. lib-sky130_fd_sc_ms Issues with the "medium speed" digital standard cells provided by the SkyWater foundry. type-bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants