+ Reply to Thread
Page 2 of 3
FirstFirst 1 2 3 LastLast
Results 11 to 20 of 24

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

  1. #11
    Wire Sofaking Nikita is on a distinguished road Nikita's Avatar
    Join Date
    May 2009
    Posts
    419

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

    Quote Originally Posted by Matte View Post
    I know, but I find it more fun to place chips and wire them up



    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:

    Well it does it even if I make a simple RC-latch.

  2. #12
    Wirezard


    Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    2,094

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

    Quote Originally Posted by GUN View Post
    matte can we get a save for that cpu? i want to see how you made all that crazy stuff plz :P
    I can give you a save when it's done. I need to add register support and memory management.

    I also need to write some docmentation on how to program it.
    "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


  3. #13
    Wire Sofaking Whodunnit will become famous soon enough Whodunnit's Avatar
    Join Date
    Jan 2008
    Location
    New Zealand, Ackl
    Posts
    482

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

    logism was already in another thread, but that processor owns, another program is also atanua, but taht lacks soem necessary features to truely work well.

    We use Quartus 2 to program our FPGA's at uni.


    also of interest is "logic friday"
    which can take trusth tables and perform complex boolean simplification for you so you dont need to do it by hand.



    Code:
    #include <iostream>
    #include <windows.h>
    
    bool A=0,B=0,C=0,D=0,E=0,F=0,F0=0,F1=0,F2=0,F3=0,F4=0,F5=0,reset = 0;    
    int counter = 0;
    
    int main(){
    
        while(1)
        {
    
            int temp = counter;
            F = temp % 2;
            temp = temp/2;
            E = temp % 2;
            temp = temp/2;
            D = temp % 2;
            temp = temp/2;
            C = temp % 2;
            temp = temp/2;
            B = temp % 2;
            temp = temp/2;
            A = temp % 2;
            temp = temp/2;
    
            F0 = A&!C&!D&E&F | !A&!B&!C&!D&!E&F;
            F1 = !A&!B&!C&D&!F | B&!C&!D&E&!F | !A&!B&D&E&F |!A&!B&!C&E&F| !B&!C&D&E&F | !A&C&!D&E&F  | A&C&!D&E&F | A&D&!E&F | !A&C&!E&F | A&!C&!D&!E&F | B&D&E&F | B&!D&!E&F | B&!C&D&!E ;
            F2 = B&C&!D&F | !A&C&!D&E&F | A&C&!D&!E&F | A&!C&!D&!E&F | B&!C&D&!E ;
            F3 = !A&!B&!C&D&!F | !A&!B&!C&!D&!E&F | B&!C&!D&E&!F | !A&!B&!C&E&F | A&C&!D&!E&F | A&C&!D&E&F | A&D&!E&F | !A&C&!E&F | B&D&E&F | B&!D&!E&F;
            F4 = !A&!B&!C&D&E  | B&C&!D&E&F | B&D&!E&F | !A&!B&D&E&F | !B&!C&D&E&F | A&C&!D&!E&F | A&C&!D&E&F | A&!C&!D&!E&F | B&!C&D&!E ;
            F5 = !A&!B&!C&!D&!E&F | !A&!B&!C&D&E  | B&D&!E&F | !A&C&!D&E&F | A&C&!D&!E&F | A&!C&!D&!E&F | B&!C&D&!E ;
            reset = A&B ;
    
            if(F0||F1||F2||F3||F4||F5)
            Beep(100*(F0*2*16+F1*2*8+F2*2*4+F3*2*2+F4*2*1+F5),100);
            else
            Sleep(100);
    
    
            if(reset)
                break;
            else
                counter++;
    
            std::cout << counter <<  " " << F0*2*16+F1*2*8+F2*2*4+F3*2*2+F4*2*1+F5 <<" " << F0 << F1 << F2 << F3 << F4 << F5 << "\n"; 
    
        }
    
        return true;
    }
    
    thats a test of my digital tone generator in c++ using the PC speaker.



    thats what we loaded to our FPGA, and we transmitted the song on an FM radio transmitter we built!

    this was a little uni project that was quite fun, not as complex as matte's processor , but its an idea of whats possible. so long story short yeah wiremod helps you do university, and yes you dont need wiremod its just a gateway to ownage stuff as OP said.

    Last edited by Whodunnit; 11-08-2009 at 04:08 PM.
    ЗАГРУЗКА...................

  4. #14
    Wirererer adadr is on a distinguished road adadr's Avatar
    Join Date
    Jan 2009
    Location
    South Dakota, USA
    Posts
    204

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

    ok i just installed this on my Win7 drive and turned off my pc for awhile and when i get back on, everything is running 10X faster. when i type A it types AAAAAAAA and all the loading screens fly by really fast. this may have caused this problem, this may have not, but i cant think of anything else that could have done it.
    Adadr. I Wire.


  5. #15
    Wire Sofaking Whodunnit will become famous soon enough Whodunnit's Avatar
    Join Date
    Jan 2008
    Location
    New Zealand, Ackl
    Posts
    482

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

    installed what? logism? I dont think that it would cause anything like that ...
    ЗАГРУЗКА...................

  6. #16
    Wirezard


    Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    2,094

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

    Hmm, it shouldn't cause anything like that. It works on my 64-bit vista, so I don't see why it shouldn't work on Win7.
    Where did you download it from? Maybe the file contained malware.
    "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


  7. #17
    Wirezard


    Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    2,094

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

    I just wanted to say that I'm working on a 32-bit version of this 8-bit CPU right now, and writing proper documentation on how to program it (I'll probably write an assembler, too). This will be a more complete CPU with support for 65536 registers and 32-bit unsigned integers up to 4294967296. This is an upgrade of my previous 8-bit CPU, which only supported 128 registers and integers up to 127. The new 32-bit CPU will also support jumps and conditional jumps.

    I'll upload the save here when I'm done, but if someone wants it, I can upload the 8-bit CPU too, even though I abandoned it, so it's not quite finished.
    "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. #18
    Wire Sofaking Nikita is on a distinguished road Nikita's Avatar
    Join Date
    May 2009
    Posts
    419

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

    Awesome Matte, I wanted to make something like CPU in logisim, but never got anywhere THAT serious.

    Also, in before people pointing out pointlessness of doing things for fun.

  9. #19
    Wire Sofaking Whodunnit will become famous soon enough Whodunnit's Avatar
    Join Date
    Jan 2008
    Location
    New Zealand, Ackl
    Posts
    482

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

    matte, 65536 different register? i dont understand why so many registers would be necessary. unless you meant ram addresses. next step buy alot of IC's and bread board it.
    Last edited by Whodunnit; 11-12-2009 at 05:27 PM.
    ЗАГРУЗКА...................

  10. #20
    Wirererer adadr is on a distinguished road adadr's Avatar
    Join Date
    Jan 2009
    Location
    South Dakota, USA
    Posts
    204

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

    i dloaded it from the website. im on XP right now
    Adadr. I Wire.


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

Similar Threads

  1. Logisim Circuit Libraries
    By mjmr89 in forum Off-Topic
    Replies: 4
    Last Post: 6 Days 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