News for hackers. Stuff that matters.
Re:Logicly: a logic gate simulator by ghshephard on Sunday May 03, 2009 @02:09AM (#590621)
I wonder how many of us will immediately try to feed a gate back on itself... (Firefox Hung when Flash came face-to-face with infinity, I had to kill -9 it, so be careful)

Very cool little App. Has a nice feel for a simple little Logic Gate simulator to play with. Would be nice to see it integrated into: http://www1.idc.ac.il/tecs/

Re:Logicly: a logic gate simulator by duskwuff on Sunday May 03, 2009 @07:13AM (#590774)
I can't reproduce the problem... it won't let you hook an inverter to itself, but a ring of three inverters works fine (but generates inconsistent output).
Re:Logicly: a logic gate simulator by joshtynjala on Sunday May 03, 2009 @08:39PM (#591649)
Looping should work better now. I pushed a new build.
Re:Logicly: a logic gate simulator by duskwuff on Monday May 04, 2009 @03:25AM (#592083)
Odd-length loops of inverters still end up making one of the inverters enter an inconsistent state.

(Edit: never mind, a shift-reload does wonders. Bravo!)

Re:Logicly: a logic gate simulator by nx on Sunday May 03, 2009 @02:42AM (#590655)
Would be really cool if one could define "new gates" in terms of gates, e.g. a half-adder, a full-adder.
Re:Logicly: a logic gate simulator by nazgulnarsil on Sunday May 03, 2009 @06:05AM (#590751)
agreed. a couple slots for your own black boxing of a component would enable fairly complex ideas to be quickly demonstrated. Could be a great teaching tool.
Re:Logicly: a logic gate simulator by likpok on Sunday May 03, 2009 @02:24PM (#591088)
Indeed. In the CS architecture class here they use Logic Works, which is only a little higher-level, but with a much worse interface.

It is no replacement for more powerful things (e.g. FPGAdvantage), but for didactic purposes, this is quite useful.

Re:Logicly: a logic gate simulator by reitzensteinm on Sunday May 03, 2009 @02:56AM (#590665)
Wow, I'm surprised how rusty I've gotten. It took quite a long time to figure out the optimal full adder.
Re:Logicly: a logic gate simulator by zzzmarcus on Sunday May 03, 2009 @12:52PM (#590992)
Pretty cool. I think I semi-broke it (or at least found a bug):

http://marcusvorwaller.com/look/Mozilla_Firefox-20090503-095...

Re:Logicly: a logic gate simulator by paulgb on Sunday May 03, 2009 @02:58PM (#591133)
I'm not sure if it's a bug in this case, but I've used logic simulation software with the same issue and it was considered a "feature". Basically, unconnected nodes of an or-gate are considered HIGH. I suppose it makes more sense when the AND-gate has more inputs.

Confused the hell out of me at the time, especially since I had left the assignment to the last possible minute.

Edit: remembered the name of the software: http://ozark.hendrix.edu/~burch/logisim/

Re:Logicly: a logic gate simulator by sketerpot on Sunday May 03, 2009 @04:09PM (#591230)
No, that still doesn't make sense to me. The behavior of a logic circuit with unconnected inputs depends on the implementation; in typical CMOS, those floating inputs can do things as wacky as picking up the electrical fields of nearby people. The proper thing to do with floating inputs is to declare them unknown, and for any logic operation which depends on their values to also be unknown. Most logic simulation software I've used or written has worked this way.
Re:Logicly: a logic gate simulator by joshtynjala on Sunday May 03, 2009 @08:42PM (#591652)
Makes sense. I'll keep that in mind if I make further updates to the simulator.
Re:Logicly: a logic gate simulator by paulgb on Sunday May 03, 2009 @05:16PM (#591327)
Thanks. Now I feel justified in thinking it was a dumb "feature" at the time. :)
Re:Logicly: a logic gate simulator by NonEUCitizen on Monday May 04, 2009 @01:39AM (#591990)
Suggestions:

1. Instead of a clickable text field that says "Simulation is STOPPED" , use something obviously clickable (obvious even when mouse is not hovering over it), like a button, and make it say "Start Simulation" . Likewise, instead of "Simulation is ACTIVE" , make the button say "Stop Simulation" . [more specific version of thehickmans' suggestion]

2. Make active the default state, i.e. the button says "Stop Simulation" by default. [seconding psyklic's suggestion]

Re:Logicly: a logic gate simulator by anigbrowl on Sunday May 03, 2009 @04:05AM (#590718)
Good job. This is what 'visual programming' is supposed to be like.
Re:Logicly: a logic gate simulator by thehickmans on Sunday May 03, 2009 @02:12PM (#591073)
That is fun to play with! It reminds me of Circuit Simulator? from the MacPlus days.

I think you should make the simulator stopped/active control more obvious.

Re:Logicly: a logic gate simulator by sketerpot on Sunday May 03, 2009 @04:13PM (#591235)
This would be even better if it supported gate delays. If it did, then we could make a ring oscillator by chaining an odd number of NOT gates in a circle, and that would just be so much fun. That sort of simulation is actually easier than it sounds; you just maintain an event queue and add a new event to the queue whenever an input to a gate changes.
Re:Logicly: a logic gate simulator by joshtynjala on Sunday May 03, 2009 @08:43PM (#591655)
A new build has been uploaded. Gates now have a propagation delay.
Re:Logicly: a logic gate simulator by sketerpot on Monday May 04, 2009 @12:40AM (#591928)
Have I mentioned that you are awesome, and so is Logicly? Because it's true.
Re:Logicly: a logic gate simulator by mathteacher on Thursday June 11, 2009 @02:10AM (#652344)
it's a clean, visually intuitive simulator - i am using it for a high school class learning logic. thanks for making it available

2 things i wish it had:

1) a way to save the state. sometimes students don't finish a problem in one session and there is no way to save the partially constructed network. and of course there's no easy way for them to give me their finished work.

2) a "T" cable to tie inputs together (for example to make an inverter from a NAND gate. it IS possible to connect both inputs to the same switch but while the result works, it doesn't look the way we usually draw gates with bridged inputs.

thanks again for a very fun toy

Re:Logicly: a logic gate simulator by zhyder on Sunday May 03, 2009 @06:09AM (#590753)
If the creator of the tool is reading:

1. Please add support for sequential logic with flops.

2. Minor bug: the "input" and "output" labels are reversed on the left pane.

Re:Logicly: a logic gate simulator by joshtynjala on Sunday May 03, 2009 @08:45PM (#591658)
Arguable on the label reversal. As someone on Reddit explained, "a lightbulb accepts input, and switches and clocks produce output".
Re:Logicly: a logic gate simulator by shard on Monday May 04, 2009 @02:45AM (#592065)
You can argue that, but to digital circuit designers, switches and clocks are inputs to the system you are designing, and light bulbs and LEDs are outputs of the system. This is going against convention.
Re:Logicly: a logic gate simulator by duskwuff on Sunday May 03, 2009 @07:13AM (#590775)
You can simulate a flop with a pair of cross-linked NOR gates.
Re:Logicly: a logic gate simulator by zhyder on Sunday May 03, 2009 @08:22AM (#590804)
That would be an SR flop, which -like the JK one- is taught in academia but hardly (if ever) used in industry. I was referring to the edge-triggered D flop; it can also be built from gates but it should be a primitive element. If the object was to have the minimum number of primitive elements in the library, you'd need only a NAND or a NOR gate.
Re:Logicly: a logic gate simulator by duskwuff on Sunday May 03, 2009 @05:33PM (#591356)
As long as they gave you the ability to compose elements, I'd be all over a circuit simulator that started out with nothing but NAND gates. :)
Re:Logicly: a logic gate simulator by shard on Monday May 04, 2009 @02:51AM (#592069)
Wooo that would feel like writing a C program starting with assembly...
Re:Logicly: a logic gate simulator by psyklic on Sunday May 03, 2009 @03:02AM (#590668)
Very cool! I recommend just having the simulation always be active (i.e. when I hook up a square wave generator, immediately have it generate a signal).
Re:Logicly: a logic gate simulator by mathteacher on Thursday June 11, 2009 @02:28AM (#652356)
a minor bug.

if a switch is connected to one input of an XOR gate but the other input is left free, the output is low regardless of the switch state. (same if switch is replaced by clock). Other gates (OR for example) work correctly even if one input is left free.

thanks again for a cool app

Re:Logicly: a logic gate simulator by longint on Sunday May 03, 2009 @04:07PM (#591225)
I wish it had a tri-state buffer.
Re:Logicly: a logic gate simulator by gojomo on Sunday May 03, 2009 @02:36AM (#590646)
Anyone else ever play "Rocky's Boots" back on the Apple ][?