GithubHelp home page GithubHelp logo

Comments (8)

graahnul-grom avatar graahnul-grom commented on May 28, 2024

@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.

graahnul-grom avatar graahnul-grom commented on May 28, 2024

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.

graahnul-grom avatar graahnul-grom commented on May 28, 2024

@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

gnet-switcap.diff.txt

from lepton-eda.

vzh avatar vzh commented on May 28, 2024

@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.

vzh avatar vzh commented on May 28, 2024

Ah, I see, the example is also in the examples/ directory. Sorry for the noise.

from lepton-eda.

vzh avatar vzh commented on May 28, 2024

@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.

vzh avatar vzh commented on May 28, 2024

JFTR, just found: http://innovation.columbia.edu/technologies/Proxy30_optimal-simulator-for-mixed/licensing

from lepton-eda.

vzh avatar vzh commented on May 28, 2024

Hmm, they require my phone number for signing up. Why? Leaving out.

from lepton-eda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.