[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Logic Gate Simulator working



Rich J. wrote:

Hi newsgroup,

I can now design (input data in DATA statements) logic circuits
and simulate them.

There is currently no graphic output, but the graphic display code is written
and needs to be debugged.

AND,OR,NOT gates supported.

Next to add:

1) datafiles which describe 74-- series IC's
   (anybody know where to get logic diagrams for these chips?)

2) programmable clock

3) add other logic devices (J/K flopflops, suggestions for others?)

4) Add a GUI to place gates

5) incorporate the simulator into the PCB CAD program, so you
can see a circuit simulated on the HGR representation of the
PCB (that is what I need #1 above for)

6)INPUT bits from parallel port.  Currently the input bits
are input from the Keyboard.  the program sits and waits
until all input bits have been entered.

I want to run the simulator in a loop with no keyboard
input, and input the bits by parallel card.
This will
speed things up AND allow input from 8 bit hardware
devices TO the simulator.

I also plan to add a "driver" simulator. Load your OBJ file for a hardware driver. If it needs input from a simulated circuit, I can change a

LDA HARDWARE
to:
JSR FIND-STATE-OF-HARDWARE-FROM-SIMULATOR


FIND-STATE-OF-HARDWARE-FROM-SIMULATOR would return to the program
with the value of HARDWARE in the Accumulator.

The same can be done with OUTPUT from a 6502 program, so you
could route data

6502-simulator-realworld(parallel card)
or
realworld(parallel card)-simulator-6502

slower than todays simulators, but it should make a nice
development system for hardware.


Rich

For a course I was taking at university there was a program called LogicWorks. It was written by a bunch of guys from Vancouver BC. Although it was for the Mac I think the interface could translate nicely to the GS.

What they did was to display the gates and chips in graphic format. They allowed connections to be made by mouse clicks. It had the usual drag and drop style for placing the components. One feature I really liked was we could create our own chips by creating the circuits, saving them, then associating them with a graphic. The final project involved creating a computer based on a 6502.

				Later
				Mike




--
+-----------------------------------------------------------------------+
|   Digital Civilization magazine: http://www.digitalcivilization.ca    |
|      http://www.mts.net/~pfaiffer = Mike Pfaiffer (B.A., B.Sc.)       |
|  See my web page before you think about spamming me. I charge cash.   |
+-----------------------------------------------------------------------+
----- BEGIN GEEK CODE BLOCK -----
Version: 3.12
GCS/G/IT/PA/SS d s+:- a? C++ UL L++ W++ N++ o+ K- w(---) O+@ M++@ V PS+
PE !PGP t+ 5+ X R tv b+ DI+++ D++ G e++* h! r-- !y-- UF++
------ END GEEK CODE BLOCK ------