+ Reply to Thread
Page 1 of 3
1 2 3 LastLast
Results 1 to 10 of 24

Thread: Logisim - A logic simulator I've built an 8-bit CPU in

  1. #1
    Wirezard


    Matte is just really nice Matte is just really nice Matte is just really nice Matte is just really nice Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    2,104

    Default Logisim - A logic simulator I've built an 8-bit CPU in

    I don't know with you, but in the last few weeks, wiremod has only been a portal for me to build things with wire logic gates. That is, until I discovered Logisim.

    Logisim is a schematic based electronics simulator. It works pretty much like wiremod. You spawn a gate, then wire it to other gates. It has a couple of advantages over wiremod, though. No lag. There is only paint-like graphics to render, and you don't have to compute physics and all that stuff Garry's Mod requires. You can also create subcurcuits. The ability to make subcurcuits lets you create a logic circuit, then turn it into a chip, so you don't need to repeat. I love this program so much, and I've spent the last two days making an 8-bit programmable CPU. By looking at the following images, you may get a picture of how complicated a CPU is, and how many thousand logic gates a simple CPU requires.

    Here's a picture of how my CPU currently looks. As you can see, this picture does not contain a single logic gate. That's because it's only built up of subcircuits:



    Do you see that rectangular microchip to the right there? That's the ALU. Some of you might remember the 8-Bit ALU I built in Garry's Mod. Well, this is an extension containing Addition, Subtraction, Multiplication, Division, Modulus, Exponention, Comparing (greater than, equal to, less than), AND, OR, XOR, NOT and random. Here's a picture of how it is built:



    Still no logic gates, but remember that all the subcircuits here is made up of tens, maybe hundreds of logic gates.

    All the microchips in that picture is handling the data simultaniusly, then a multiplexer is selecting the data based on an opcode recieved from the Instruction Reader.
    If you scroll up and look at the CPU, see that square subcircuit in the middle there? That's the instruction decoder and sequencer. Let's see how that subcircuit looks:



    This circuit is reading the program code from a ROM (read-only memory) then decoding the instructions and sequencing them, then it runs the code. You can barely see any logic gates here, either. So, I'm gonna show you how one of the mutliplexers is built. See that microchip marked "MUX"? That's a multiplexer. I'm gonna zoom in on that multiplexer to see how many logic gates such a simple chip requires.
    Here's a picture of a 4x8-bit multiplexer:



    As you can see, all this subcircuit does is to wire up 4 8-bit multiplexers. The 8-bit multiplexer looks like this:



    Think that every subcircuit you've seen on the last pictures requires as many gates as this. You will now have a vague impression of how many logic gates a simple CPU really requires. The first ever CPU commercial, the Intel 8080, was an 8-bit processor, and it had 6000 transistors. CPU's today have about 125 million.
    Attached Images
    Last edited by Matte; 11-08-2009 at 10:36 PM.
    "If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
    -- Niels Bohr


  2. #2
    Wire Sofaking ryland is on a distinguished road ryland's Avatar
    Join Date
    Oct 2009
    Location
    Card bord box next to wal-mart.
    Posts
    489

    Default Re: Logisim - A logic simulator I've built an 8-bit CPU in

    Nice, what did you make the schematics with?
    "I like pie"-Jat Goodwin

    <Azrael-> ryland: LOL is such a noobish thing to say.
    <ryland> LOL
    <Fox682> LOLLOL
    <Fox682> LOL
    <ryland> LOL

  3. #3
    Wirezard


    Matte is just really nice Matte is just really nice Matte is just really nice Matte is just really nice Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    2,104

    Default Re: Logisim - A logic simulator I've built an 8-bit CPU in

    Quote Originally Posted by ryland View Post
    Nice, what did you make the schematics with?
    That's how the program looks. And that's what is so great with it. It doesn't require a monster of a computer to render unnecessary heavy graphics
    "If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
    -- Niels Bohr


  4. #4
    Wire Sofaking ryland is on a distinguished road ryland's Avatar
    Join Date
    Oct 2009
    Location
    Card bord box next to wal-mart.
    Posts
    489

    Default Re: Logisim - A logic simulator I've built an 8-bit CPU in

    Quote Originally Posted by Matte View Post
    That's how the program looks. And that's what is so great with it. It doesn't require a monster of a computer to render unnecessary heavy graphics
    Cool Ive used altium to do that before.
    "I like pie"-Jat Goodwin

    <Azrael-> ryland: LOL is such a noobish thing to say.
    <ryland> LOL
    <Fox682> LOLLOL
    <Fox682> LOL
    <ryland> LOL

  5. #5
    Wire Noob Chrono101 is on a distinguished road Chrono101's Avatar
    Join Date
    Aug 2009
    Posts
    16

    Default Re: Logisim - A logic simulator I've built an 8-bit CPU in

    I use Quartus II 9.0 Web Edition for this kind of stuff. It's free, and it does everything that Logisim does, except it also has support for Verilog and VHDL. Most professional electronics engineers don't design circuits in a graphical simulator anymore, because it is too time consuming. They use Verilog or VHDL and just "program" their circuits. Quartus II can convert Verilog and VHDL to schematic diagrams, and vice-versa, and then lets you simulate inputs and stuff as well.
    Drone design, production, and programming at ChronoShift Industries

    Predator Mk.II UAV -- The most advanced aerial combat drone to date.

    "The best weapon you have only fires neurons -- better keep it loaded!"

  6. #6
    Wire Sofaking Nikita is on a distinguished road Nikita's Avatar
    Join Date
    May 2009
    Posts
    425

    Default Re: Logisim - A logic simulator I've built an 8-bit CPU in

    I liked playing with Logisim, but there is just one big problem: It keeps whining about "Oscillation apparent" and stops the simulation.

  7. #7
    Wirezard


    Matte is just really nice Matte is just really nice Matte is just really nice Matte is just really nice Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    2,104

    Default Re: Logisim - A logic simulator I've built an 8-bit CPU in

    Quote Originally Posted by Chrono101 View Post
    I use Quartus II 9.0 Web Edition for this kind of stuff. It's free, and it does everything that Logisim does, except it also has support for Verilog and VHDL. Most professional electronics engineers don't design circuits in a graphical simulator anymore, because it is too time consuming. They use Verilog or VHDL and just "program" their circuits. Quartus II can convert Verilog and VHDL to schematic diagrams, and vice-versa, and then lets you simulate inputs and stuff as well.
    I know, but I find it more fun to place chips and wire them up


    Quote Originally Posted by Nikita View Post
    I liked playing with Logisim, but there is just one big problem: It keeps whining about "Oscillation apparent" and stops the simulation.
    That happens when you create an "infinite loop". It always takes some time for a gate to handle a data input and then output, so if you are creating a circuit like this, you will have an infinite loop:

    Attached Images
    "If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
    -- Niels Bohr


  8. #8
    Wire Sofaking Whosdr will become famous soon enough Whosdr's Avatar
    Join Date
    Dec 2008
    Posts
    1,382

    Default Re: Logisim - A logic simulator I've built an 8-bit CPU in

    The site seems to be down.
    Can we get a download?

    Pinging gave timeout.
    Whatever you do, do not read this!

  9. #9
    Wire Sofaking N00bDud3 will become famous soon enough N00bDud3's Avatar
    Join Date
    Jul 2009
    Location
    Error: Unknown Location
    Posts
    504

    Default Re: Logisim - A logic simulator I've built an 8-bit CPU in

    I found it on Sourceforge by searching Google.



    42 42 564

  10. #10
    GUN
    GUN is offline
    Wire Sofaking GUN is on a distinguished road GUN's Avatar
    Join Date
    Jan 2008
    Location
    California
    Posts
    477

    Default Re: Logisim - A logic simulator I've built an 8-bit CPU in

    matte can we get a save for that cpu? i want to see how you made all that crazy stuff plz :P

+ Reply to Thread
Page 1 of 3
1 2 3 LastLast

Similar Threads

  1. Logisim Circuit Libraries
    By mjmr89 in forum Off-Topic
    Replies: 4
    Last Post: 1 Week Ago, 12:48 AM
  2. Replies: 3
    Last Post: 07-05-2009, 05:14 PM
  3. Wire built into map
    By Schilcote in forum Help & Support
    Replies: 7
    Last Post: 03-18-2009, 06:03 PM
  4. A challenger to Atanua (free logic simulator)
    By mjmr89 in forum Off-Topic
    Replies: 14
    Last Post: 02-07-2009, 02:54 PM
  5. Free logic simulator.
    By Koolguy007 in forum Off-Topic
    Replies: 43
    Last Post: 02-05-2009, 03:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts