Thread: scripts up to scratch for circuits???

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    60

    scripts up to scratch for circuits???

    Hello, I have began my software cpu project (lol) with a stab at a logic circuit sim program. Because it will be text based, users will have to draw out a schematic diagram of the circuit, and then create a simple script that my program will look at. My program will then place the circuit in it's own environment for executing the signal flow through the circuit and display the output/s value.
    Is this a good way to do it? I do plan to do a win32 version when I come to terms with the mechanics properly. by the way, the script will be in two parts. A declaration of components part and a connection description for the components part.
    "It compiled, let's ship it!"

    Guitar Australia
    my site for some easy tutorials.

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    It's as good a way as any to start. What you'll probably want to do is build a drag and drop interface where you can pick up a gate, (resistor, transistor - I don't know how far down you intend to go), and drop it onto a page, then hook up the inputs and outputs. You'll want to be able to save your designs, so a file format and processing routines that has a list of components and interconnections will be useful.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Feb 2003
    Posts
    60

    RE drag n drop

    Thanks adrian, I do intend to build it in that style, but probably not on the level of diodes and trannies(You know what I mean..).
    The logic is the main thing... It's kind of ironic doing encapsulation with c++ at this low level..
    "It compiled, let's ship it!"

    Guitar Australia
    my site for some easy tutorials.

  4. #4
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    If you really want to add to the collection of hundreds of circuit sim programs, I recommend you write a program that reads and writes SPICE files; no need to make your own custom text file format when there already is a good one to use that hundreds of prorams can already use.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Free complete Scripts
    By anderson in forum C++ Programming
    Replies: 2
    Last Post: 02-13-2006, 04:18 AM
  2. scripts files
    By hiya in forum C++ Programming
    Replies: 1
    Last Post: 05-29-2005, 02:22 PM
  3. C++ for CGI scripts
    By sean in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 01-03-2003, 10:53 AM
  4. Making scripts run in a window...
    By PanZer_Jester in forum C++ Programming
    Replies: 2
    Last Post: 05-02-2002, 04:53 PM