Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6e5ec21

Browse files
committed
Rename dependencies to ip
1 parent c8f7adf commit 6e5ec21

File tree

6 files changed

+32
-12
lines changed

6 files changed

+32
-12
lines changed

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "sky130_ef_ip__samplehold"]
2-
path = dependencies/sky130_ef_ip__samplehold
3-
url = ../sky130_ef_ip__samplehold.git
1+
[submodule "ip/sky130_ef_ip__samplehold"]
2+
path = ip/sky130_ef_ip__samplehold
3+
url = ../../efabless/sky130_ef_ip__samplehold.git

dependencies/sky130_ef_ip__samplehold

Lines changed: 0 additions & 1 deletion
This file was deleted.

ip/sky130_ef_ip__samplehold

mag/sky130_ef_ip__rdac3v_8bit.mag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ use dac_3v_column_odd dac_3v_column_odd_7
15801580
timestamp 1653060931
15811581
transform 1 0 23322 0 1 322
15821582
box -20 -7 1049 15263
1583-
use follower_amp follower_amp_0 ../dependencies/sky130_ef_ip__samplehold/mag
1583+
use follower_amp follower_amp_0 ../ip/sky130_ef_ip__samplehold/mag
15841584
timestamp 1718228583
15851585
transform 0 1 12491 1 0 16882
15861586
box 0 0 4377 11129

xschem/sky130_ef_ip__rdac3v_8bit_tb.sch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
v {xschem version=3.0.0 file_version=1.2 }
1+
v {xschem version=3.4.6 file_version=1.2}
22
G {}
33
K {}
44
V {}
@@ -159,11 +159,11 @@ C {devices/vsource.sym} -780 -2810 0 0 {name=V8 value="PULSE(0 1.8 50n 5n 5n 16u
159159
C {devices/vsource.sym} -780 -2730 0 0 {name=V9 value="PULSE(0 1.8 50n 5n 5n 32u 64u)"}
160160
C {devices/vsource.sym} -780 -2650 0 0 {name=V10 value="PULSE(0 1.8 50n 5n 5n 64u 128u)"}
161161
C {devices/vsource.sym} -780 -2570 0 0 {name=V12 value="PULSE(0 1.8 50n 5n 5n 128u 256u)"}
162-
C {devices/code.sym} -80 -3110 0 0 {name=s1 only_toplevel=false value="
163-
.lib /usr/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt
164-
.include /usr/share/pdk/sky130A/libs.ref/sky130_fd_sc_hvl/spice/sky130_fd_sc_hvl.spice
162+
C {devices/code.sym} -80 -3110 0 0 {name=Libs only_toplevel=false value="
163+
.lib $PDK_ROOT/$PDK/libs.tech/ngspice/sky130.lib.spice tt
164+
.include $PDK_ROOT/$PDK/libs.ref/sky130_fd_sc_hvl/spice/sky130_fd_sc_hvl.spice
165165
"}
166-
C {devices/code.sym} 100 -3110 0 0 {name=s2 only_toplevel=false value="
166+
C {devices/code_shown.sym} 100 -3090 0 0 {name=Control only_toplevel=false value="
167167
.control
168168
tran 50m 256u
169169
plot V(out)

xschem/xschemrc

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Set default PDK_ROOT
2+
if { ![info exists env(PDK_ROOT)] } {
3+
puts stderr "Warning: PDK_ROOT env. var. not found or empty, trying to find an open_pdks install"
4+
if {[file isdir /usr/share/pdk]} {set ::env(PDK_ROOT) /usr/share/pdk
5+
} elseif {[file isdir /usr/local/share/pdk]} {set ::env(PDK_ROOT) /usr/local/share/pdk
6+
} elseif {[file isdir $env(HOME)/share/pdk]} {set ::env(PDK_ROOT) $env(HOME)/share/pdk
7+
} elseif {[file isdir $env(HOME)/.volare]} {set ::env(PDK_ROOT) $env(HOME)/.volare
8+
} else {
9+
puts stderr {No open_pdks installation found, set PDK_ROOT env. var. and restart xschem}
10+
}
11+
}
12+
13+
# Set default PDK
14+
if { ![info exists env(PDK)] } {
15+
set ::env(PDK) sky130A
16+
}
17+
118
# Source the PDK xschemrc file
219
if {![info exists PDK]} {
320
source $env(PDK_ROOT)/$env(PDK)/libs.tech/xschem/xschemrc
@@ -6,5 +23,8 @@ if {![info exists PDK]} {
623
# Add current directory to xschem library path
724
append XSCHEM_LIBRARY_PATH :[file dirname [info script]]
825

9-
# Source the dependencies
10-
source [file dirname [info script]]/../dependencies/sky130_ef_ip__samplehold/xschem/xschemrc
26+
# Source the dependencies xschemrc files
27+
foreach rcfile [glob -nocomplain [file dirname [info script]]/../ip/*/xschem/xschemrc] {
28+
puts "sourcing $rcfile"
29+
source $rcfile
30+
}

0 commit comments

Comments
 (0)