Author Topic: How NOT to write a logic simulator...  (Read 3631 times)

0 Members and 1 Guest are viewing this topic.

Offline amykTopic starter

  • Super Contributor
  • ***
  • Posts: 8420
How NOT to write a logic simulator...
« on: July 07, 2014, 02:45:05 pm »
I came across this and thought I'd try it out since it looked interesting:

http://smartsim.org.uk/

After figuring out the not-intuitive-at-all UI and trying to create a basic flip-flop, it crashed immediately when I tried to drag a wire that didn't like being dragged.  |O The second time I got to simulation but somehow it made the flip-flop start to oscillate which hung the program in an annoying way.

Here's what I could find wrong from just trying it out for <10 minutes:
- no feedback at all when placing or moving components or wires
- routing and connecting wires is a fiddly nightmare - one segment at a time
- no context menus
- no keyboard shortcuts
- no NAND/NOR gates (you have to use an "invert tool" for that...)
- no buses (but it supports hierarchical design; what good is that without buses? :palm:)
- deleting a wire deletes the whole net!
- no copy/paste
- NO UNDO! :rant:
And maybe this was too much to expect given the above
- no delay or timing analyses

And apparently this is already version 1.4...

/rant
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: How NOT to write a logic simulator...
« Reply #1 on: July 07, 2014, 06:28:27 pm »
But you forgot the biggest advantage. It runs on the Raspberry Pi. Yes, olé, olé, olé, hallelujah, the Pi! All hail the Pi.

Thank you Raspberry Pi Foundation for breading a new generation of rubbish programmers.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline bwat

  • Frequent Contributor
  • **
  • Posts: 278
  • Country: se
    • My website
Re: How NOT to write a logic simulator...
« Reply #2 on: July 07, 2014, 06:43:27 pm »
But you forgot the biggest advantage. It runs on the Raspberry Pi. Yes, olé, olé, olé, hallelujah, the Pi! All hail the Pi.

Thank you Raspberry Pi Foundation for breading a new generation of rubbish programmers.

Careful! Some of us who started off as rubbish programmers back in the era of the 8-bit 6502 based home computer - it's assembly or BASIC take your pick - turned out half decent in the end. There's always hope.
"Who said that you should improve programming skills only at the workplace? Is the workplace even suitable for cultural improvement of any kind?" - Christophe Thibaut

"People who are really serious about software should make their own hardware." - Alan Kay
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: How NOT to write a logic simulator...
« Reply #3 on: July 07, 2014, 06:56:03 pm »
Careful! Some of us who started off as rubbish programmers back in the era of the 8-bit 6502 based home computer - it's assembly or BASIC take your pick - turned out half decent in the end. There's always hope.

The difference is we didn't impose our rubbish on the unsuspecting public. We kept it in the privacy of our bedrooms.

Android and Pi users both have this abnormal urge to do everything in the open.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline Neilm

  • Super Contributor
  • ***
  • Posts: 1559
  • Country: gb
Re: How NOT to write a logic simulator...
« Reply #4 on: July 07, 2014, 07:12:58 pm »
- NO UNDO! :rant:

And apparently this is already version 1.4...
/rant
So? NIs Labview didn't get an Undo until version 5.

(and as you could delete a weeks work with a careless button press, you got very used to reloading.)
Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe. - Albert Einstein
Tesla referral code https://ts.la/neil53539
 

Offline nitro2k01

  • Frequent Contributor
  • **
  • Posts: 845
  • Country: se
Re: How NOT to write a logic simulator...
« Reply #5 on: July 07, 2014, 07:39:29 pm »
Android and Pi users both have this abnormal urge to do everything in the open.
Sure you don't mean Arduino?
Whoa! How the hell did Dave know that Bob is my uncle? Amazing!
 

Offline Rigby

  • Super Contributor
  • ***
  • Posts: 1476
  • Country: us
  • Learning, very new at this. Righteous Asshole, too
Re: How NOT to write a logic simulator...
« Reply #6 on: July 07, 2014, 07:48:36 pm »
But you forgot the biggest advantage. It runs on the Raspberry Pi. Yes, olé, olé, olé, hallelujah, the Pi! All hail the Pi.

Thank you Raspberry Pi Foundation for breading a new generation of rubbish programmers.

I am fascinated by the RPi as a platform because of a few things; the hardware is rigidly defined, it has a modern OS, and it has GPIO.  People who really, really push the boundaries in constrained resource environments often come up with really neat things.

I agree with you, though, that the general "OMG Pi!!" attitude is undeserved.  It's a computing platform.  There have been many before, there will be many, many more.  I wish folks would save their excitement for other single-board-computers.  The BeagleBone Black, for example.

I'd bet that Logisim would run on the Pi, and it's a fine piece of software, IME.
« Last Edit: July 07, 2014, 07:50:19 pm by Rigby »
 

Offline katzohki

  • Frequent Contributor
  • **
  • Posts: 378
  • Country: us
    • My Blog
Re: How NOT to write a logic simulator...
« Reply #7 on: July 07, 2014, 07:52:12 pm »
But you forgot the biggest advantage. It runs on the Raspberry Pi. Yes, olé, olé, olé, hallelujah, the Pi! All hail the Pi.

Thank you Raspberry Pi Foundation for breading a new generation of rubbish programmers.

Yes, please, avoid "breading" rubbish programmers.



Then again...
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf