Skip to content

Commit

Permalink
both n/p fets work and pass DRC-LVS
Browse files Browse the repository at this point in the history
  • Loading branch information
amisapta15 committed Dec 12, 2024
1 parent 902968f commit 49c0b67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


.subckt CurrentMirror VREF VCOPY VSS
XA VREF VREF VSS VSS sky130_fd_pr__nfet_01v8 l=1 w=3 m=2 nf=2
XB VCOPY VREF VSS VSS sky130_fd_pr__nfet_01v8 l=1 w=3 m=2 nf=2
XDUMMY VSS VSS VSS VSS sky130_fd_pr__nfet_01v8 l=1 w=3 m=2
.subckt CurrentMirror VREF VCOPY VDD
XA VREF VREF VDD VDD sky130_fd_pr__pfet_01v8 l=1 w=3 m=2 nf=1
XB VCOPY VREF VDD VDD sky130_fd_pr__pfet_01v8 l=1 w=3 m=2 nf=1
XDUMMY VDD VDD VDD VDD sky130_fd_pr__pfet_01v8 l=1 w=3 m=2
.ends CurrentMirror
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def sky130_add_current_mirror_labels(

# Main function to generate the current mirror layout
# mappedpdk, Width, Length, num_cols, fingers, transistor type
comp = CurrentMirror(sky130,3,1,2,2, type='nfet', with_substrate_tap=False, with_tie=True)
comp = CurrentMirror(sky130,3,1,2,1, type='nfet', with_substrate_tap=False, with_tie=True)
# Add labels to the current mirror layout
comp = sky130_add_current_mirror_labels(comp, transistor_type='nfet', pdk=sky130)

Expand Down

0 comments on commit 49c0b67

Please sign in to comment.