Forum Topic: Simple Logic Circuit Simulator

(93 views • 6 replies)

This topic is 1 page long.

<< < > >>
None

StaliN98

Reply To Post Reply & Quote

Posted at: 5/10/09 12:30 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

I, as a complete nerd, enjoy messing around with logic circuits in programs like Yenka. I wanted to see if I could make a program like that in Flash, and I can't! I came quite close though, it can do most things I wanted. It just doesn't have saving, and has several bugs such as it falling foul to the race condition.
Anyway, here it is. If you find any bugs, can you tell me what you did to get the bug so that I can try and fix it.
Click on the tabs at the bottom to open a tool menu, then click and drag a component onto the stage.
Hold shift and click on a placed component to start wiring, and then click on a component to output to to connect them.
Hold alt, then click and drag to move placed components. This is quite buggy.
Hold ctrl and click on a component to remove it.
Some components (like switches) can be clicked on to change their output.
http://spamtheweb.com/ul/upload/100509/6 2430_main.php
Have fun (or not).


None

WolfAkela

Reply To Post Reply & Quote

Posted at: 5/10/09 12:41 PM

WolfAkela LIGHT LEVEL 08

Sign-Up: 12/19/05

Posts: 2,324

Pretty cool, though I wish there was a way to remove a wiring instead of having to remove and replacing the gate. Haven't tried the 7-seg display though.


None

StaliN98

Reply To Post Reply & Quote

Posted at: 5/10/09 12:50 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

Thanks, I'll work on removing single wires now.


None

kiwi-kiwi

Reply To Post Reply & Quote

Posted at: 5/10/09 12:55 PM

kiwi-kiwi LIGHT LEVEL 08

Sign-Up: 03/06/09

Posts: 631

I'm just wondering, what happens in your flash when you input two ones into the SR FlipFlop?


None

StaliN98

Reply To Post Reply & Quote

Posted at: 5/10/09 01:04 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

Done removing wires: http://spamtheweb.com/ul/upload/100509/6 4983_main.php
If you input two 1s into the SR, it ignores the input. I'm not sure if all the gates are correct, so corrections will be very useful.


None

kiwi-kiwi

Reply To Post Reply & Quote

Posted at: 5/10/09 02:04 PM

kiwi-kiwi LIGHT LEVEL 08

Sign-Up: 03/06/09

Posts: 631

I'm playing with it right now, It's actually kinda fun and accurate, but I'd like to make some suggestions.

1) On the data selector put the selection input on the top side of the rectangle, data on the left, enable circuit on the bottom and output on the right.
2)FlipFlops come with both a Q data output and a !Q data output as far as I knew
3)The gate with 4 xors is wrong. 0^1^1^1 outputs 1 not 0 (0^1 =1 then 1^1=0 then 0^1=1)
and so does any combination of 3 ones.
4)State somewhere in the swf that red = 1 and white = 0 (It gets confusing in the beginning).


None

StaliN98

Reply To Post Reply & Quote

Posted at: 5/10/09 04:10 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

Thanks for the help:
For 1 and 2, I stupidly designed the gate superclass to only facilitate one output on the right, and inputs only on the left.
At 3, I will fix soon, and at 4, the finished product will have a sort of tutorial thing hopefully.


All times are Eastern Standard Time (GMT -5) | Current Time: 07:45 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!