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

[ngspice] ngspice can't find the relative path of some includes #23274

Open
2 of 6 tasks
Kreijstal opened this issue Feb 2, 2025 · 1 comment
Open
2 of 6 tasks

[ngspice] ngspice can't find the relative path of some includes #23274

Kreijstal opened this issue Feb 2, 2025 · 1 comment
Labels

Comments

@Kreijstal
Copy link
Contributor

Description / Steps to reproduce the issue

Run this on bash

cat > test.spice <<'EOF'
.title Voltage Multiplier
* Include SkyWater sky130 device models
*.lib "./sky130A/libs.tech/ngspice/sky130.lib.spice"
.include "./sky130A/libs.tech/ngspice/corners/tt.spice"
.param mc_mm_switch=0
Vdd vdd gnd DC 1.8
V1 in gnd pulse(0 1.8 0p 200p 100p 1n 2n)

Xnot1 in vdd gnd out not1

.subckt not1 a vdd vss z
xm01   z a     vdd     vdd sky130_fd_pr__pfet_01v8_hvt  l=0.15  w=0.99  as=0.26235  ad=0.26235  ps=2.51   pd=2.51
xm02   z a     vss     vss sky130_fd_pr__nfet_01v8  l=0.15  w=0.495 as=0.131175 ad=0.131175 ps=1.52   pd=1.52
c3  a     vss   0.384f
c2  z     vss   0.576f
.ends

* simulation command:
.tran 1ps 10ns 0 10p

.control
run
*set nolegend
plot in out
*rusage all
.endc

.end
EOF

wget "https://github.com/efabless/volare/releases/download/sky130-fa87f8f4bbcc7255b6f0c0fb506960f531ae2392/sky130_fd_pr.tar.zst"
wget "https://github.com/efabless/volare/releases/download/sky130-fa87f8f4bbcc7255b6f0c0fb506960f531ae2392/common.tar.zst"
tar -xvf common.tar.zst
tar -xvf sky130_fd_pr.tar.zst
ngspice_con.exe
source test.spice

Expected behavior

It works just like in linux.

Actual behavior

Error: Could not find include file ../../../libs.tech/ngspice/parasitics/sky130_fd_pr__model__parasitic__diode_pw2dn__extended_drain.model.spice
Error: Could not find include file ../../../libs.tech/ngspice/parasitics/sky130_fd_pr__model__parasitic__diode_ps2dn__extended_drain.model.spice

Despite file existing

Verification

Windows Version

MINGW64_NT-10.0-19045

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANGARM64

Are you willing to submit a PR?

No response

@Kreijstal Kreijstal added the bug label Feb 2, 2025
@Kreijstal
Copy link
Contributor Author

Kreijstal commented Feb 3, 2025

hmm seems it only affects windows11 but not windows10 hmm ok (both ucrt64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant