Comments (8)
@AweVision7 Steven, thank you for the report.
Could you please attach a simple schematic to test
the backend along with expected and actual output?
from lepton-eda.
I get a backtrace while running the following command
in utils/netlist/examples/switcap
:
lepton-netlist -g switcap -o - ckt.sch clocks.sch analysis.sch
Backtrace:
4 (primitive-load "/home/dmn/lepton/bin.master/bin/lepton-netlist")
3 (%with-toplevel #<geda-toplevel 0x800e39b90> #<procedure 803ef2d80 at ice-9/eval.scm:330:13 ()>)
In ice-9/eval.scm:
619:8 2 (_ #(#(#(#<directory (guile-user) 801b3d140>) #f) ("GND" "OUT" "unnamed_net1" "unnamed_net2" "unnamed_net3" "unnamed_net4" "unnamed_net5" "unnamed_net6") ("ANA1" "C1" "C2" "C3" "CLK1" "E1" "OPTIONS" "S1" "S2" "S3" "S4" "S5" "S6" "S7" "S8" "TIMING" "TITLE" "V1")))
619:8 1 (_ #(#(#(#<directory (guile-user) 801b3d140>) ("ANA1" "C1" "C2" "C3" "CLK1" "E1" "OPTIONS" "S1" "S2" "S3" "S4" "S5" "S6" "S7" "S8" "TIMING" "TITLE" "V1")) "ANA1"))
336:13 0 (_ #<input: test.ana 12>)
ice-9/eval.scm:336:13: Wrong number of arguments to #<procedure switcap:cat-file (a b)>
from lepton-eda.
@AweVision7 Please try this patch, it works for me.
Apply it to the latest git sources with
git apply gnet-switcap.diff.txt
diff --git a/utils/netlist/scheme/backend/gnet-switcap.scm b/utils/netlist/scheme/backend/gnet-switcap.scm
index 7cf15b108..5ba6740da 100644
--- a/utils/netlist/scheme/backend/gnet-switcap.scm
+++ b/utils/netlist/scheme/backend/gnet-switcap.scm
@@ -376,7 +376,7 @@
(let ((fname (switcap:write-attrib package "file")))
(display "\" */\n")
(if (file-exists? fname)
- (switcap:cat-file (open-input-file fname))
+ (switcap:cat-file (open-input-file fname) (current-output-port))
(netlist-error 1 "ERROR: Analysis file ~S not found.\n" fname)))))
(define switcap:cat-file
from lepton-eda.
@AweVision7, as @graahnul-grom already asked, could you please provide us with a simple test schematic to include it in the test suite?
from lepton-eda.
Ah, I see, the example is also in the examples/
directory. Sorry for the noise.
from lepton-eda.
@AweVision7, have you ever used the SWITCAP program itself, I mean sw
or sw2
? I've not found a way to download it anywhere.
from lepton-eda.
JFTR, just found: http://innovation.columbia.edu/technologies/Proxy30_optimal-simulator-for-mixed/licensing
from lepton-eda.
Hmm, they require my phone number for signing up. Why? Leaving out.
from lepton-eda.
Related Issues (20)
- Links to gitter.im are broken HOT 7
- Cannot load lepton-schematic configuration HOT 22
- LM317 has pinseq visible instead of pinnumber HOT 2
- Segfault after multiple opening/closing of Edit Attributes dialog box HOT 19
- Custom Color Maps? HOT 2
- lepton-schematic not starting HOT 9
- Behavioral source in Lepton-eda HOT 4
- lepton-tragesym fails HOT 2
- *wishlist* Customizable net/bus width and junction cue sizes HOT 1
- segfault crash is lepton-schematic HOT 2
- lepton-eda_1.9.11 from https://packages.ubuntu.com/groovy/lepton-eda cannot be installed on Ubuntu 20.04.3 HOT 3
- lepton-schematic-1.9.17 fails to run (compilation of /usr/share/lepton-eda/scheme/lepton/ffi.scm failed) HOT 9
- make and make install not working HOT 16
- lepton-schematic ubuntu impish fails to run HOT 7
- Gtk3 port: issue with zooming when gui::warp-cursor=true
- Q: Is this Functional Electronic Computer-Aided Design (fECAD) solution? (Basically OpenSCAD for electronics?) HOT 2
- lepton-archive --extract behavior
- Failure to compile schema at first start HOT 1
- lepton-netlist will not run HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lepton-eda.