Author Topic: Anyone use Logisim?  (Read 52949 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Anyone use Logisim?
« Reply #60 on: December 03, 2010, 11:24:06 pm »
Ah, right, that makes a lot of emulators nested in each others. ;D

Kinda like if TI-Boy SE ran on the Nspire: It would be a GB emu running in a 84+, running in a TI-Nspire, running in Ncubate or Goplat's emu, running on a virtual machine because you have Mac OS. ;D

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Anyone use Logisim?
« Reply #61 on: December 04, 2010, 04:25:53 am »
Ah, right, that makes a lot of emulators nested in each others. ;D

Kinda like if TI-Boy SE ran on the Nspire: It would be a GB emu running in a 84+, running in a TI-Nspire, running in Ncubate or Goplat's emu, running on a virtual machine because you have Mac OS. ;D
What about:
Linux > (Wine (which isn't really emulation but lol)) > Windows > Wii > DS > TI-84+ (or is that emulator TI-83+ only?) > Game Boy

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Anyone use Logisim?
« Reply #62 on: December 04, 2010, 03:43:55 pm »
I'm not sure if WabbitDS is compatible with the 84+. I think the last update was in 2007 and it was more limited than the Windows Wabbit.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Anyone use Logisim?
« Reply #63 on: April 01, 2011, 03:04:30 pm »
Sorry for the necro. Turns out that I have to build a microprocessor for one of my classes, so I've been playing around with circuits a lot lately. Here's one of my favorite things: An 8 bit barrel shifter capable of shifts up to 15 bits (left only at the moment) as well as changing between rotating the input (MSB->LSB), 0->LSB, and 1->LSB shifts. The circuit is absolutely massive though. Here's what I managed to fit on one screen.

∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Anyone use Logisim?
« Reply #64 on: April 01, 2011, 04:46:21 pm »
Hehe, that reminds me... I was working on either a 16-bit or 32-bit processor... I should get back to work on that x.x

Ashbad

  • Guest
Re: Anyone use Logisim?
« Reply #65 on: April 01, 2011, 04:50:04 pm »
I should try and make a 128 bit processor.. :)

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Anyone use Logisim?
« Reply #66 on: April 01, 2011, 04:55:33 pm »
I think I will stick with 8 or 16 bit... Maybe a Z80 :D

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Anyone use Logisim?
« Reply #67 on: April 01, 2011, 10:59:28 pm »
would a 128 bit run faster than a 64 bit? I mean really, you're talking about having to array larger and larger pieces of memory, etc.  Eventually, it might even out where the number of bits are the max for max processor speed.  Unless I don't know what the heck I'm talking about, in which case, ignore me please.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Anyone use Logisim?
« Reply #68 on: April 02, 2011, 01:13:30 am »
(ignored) :P I see what you mean... That is why I think 32-bit is about as high as we need for now.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Anyone use Logisim?
« Reply #69 on: April 02, 2011, 02:07:59 am »
Well I did some looking into making a z80 replica of it, and this site may be of use http://www.z80.info/
Some circuit diagrams: http://www.z80.info/z80core3.htm http://www.z80.info/z80core4.htm
Nothing seems to actually show how the cpu is setup though, just systems including it. I'm going to do some more digging.
/e

Offline nitacku

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 300
  • Rating: +30/-1
  • ni-ta-ku ^_^
    • View Profile
Re: Anyone use Logisim?
« Reply #70 on: April 02, 2011, 03:20:28 am »
Attached is a simple multi-cycle data path used in one of my classes.
One image shows the data path without pipelining, the other with.

The LC-2K is an 8-register, 32-bit computer.  All addresses are
word-addresses.  The LC-2K has 65536 words of memory.  By assembly-language
convention, register 0 will always contain 0 (i.e. the machine will not enforce
this, but no assembly-language program should ever change register 0 from its
initial value of 0).

There are 4 instruction formats (bit 0 is the least-significant bit).  Bits
31-25 are unused for all instructions, and should always be 0.

R-type instructions (add, nand):
    bits 24-22: opcode
    bits 21-19: reg A
    bits 18-16: reg B
    bits 15-3:  unused (should all be 0)
    bits 2-0:   destReg

I-type instructions (lw, sw, beq):
    bits 24-22: opcode
    bits 21-19: reg A
    bits 18-16: reg B
    bits 15-0:  offsetField (a 16-bit, 2's complement number with a range of
                    -32768 to 32767)

J-type instructions (jalr):
    bits 24-22: opcode
    bits 21-19: reg A
    bits 18-16: reg B
    bits 15-0:  unused (should all be 0)

O-type instructions (halt, noop):
    bits 24-22: opcode
    bits 21-0:  unused (should all be 0)

------------------------------------------------------------------------------
Table 1: Description of Machine Instructions
------------------------------------------------------------------------------
Assembly language       Opcode in binary                Action
name for instruction    (bits 24, 23, 22)
------------------------------------------------------------------------------
add (R-type format)     000           Add contents of regA with
                                                contents of regB, store
                                                results in destReg.

nand (R-type format)    001           Nand contents of regA with
                                                contents of regB, store
                                                results in destReg.  This is
                                                a bitwise nand; each bit is
                                                treated independently.

lw (I-type format)      010             Load regB from memory. Memory
                                                address is formed by adding
                                                offsetField with the contents
                                                of regA.

sw (I-type format)      011            Store regB into memory. Memory
                                                address is formed by adding
                                                offsetField with the contents
                                                of regA.

beq (I-type format)     100            If the contents of regA
                                                and regB are the same,
                                                then branch to the address
                                                PC+1+offsetField,
                                                where PC is the address
                                                of the beq instruction.

jalr (J-type format)    101              First store PC+1 into regB,
                                                where PC is the address of the
                                                jalr instruction.  Then branch
                                                to the address now contained in
                                                regA.  Note that this implies
                                                if regA is the same as regB,
                                                the processor will first store
                                                PC+1 into that register, then
                                                end up branching to PC+1.
                                                In other words, FIRST the value
                                                of PC+1 gets stored into regB,
                                                then SECOND, the execution
                                                jumps to the address in regA.
                                                That means that if the two
                                                registers specified are the
                                                same, then it will first put
                                                PC+1 into the register, and
                                                then jump to the value in that
                                                register.  The net effect will
                                                be jumping to PC+1.

halt (O-type format)    110            Increment the PC (as with all
                                                instructions), then halt the
                                                machine (let the simulator
                                                notice that the machine
                                                halted).

noop (O-type format)    111           Do nothing.
-------------------------------------------------------------------------------

If anyone wants to actually create something, this a good example to start with. :P


Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Anyone use Logisim?
« Reply #71 on: April 05, 2011, 02:36:31 pm »
Cool!
I'm not a nerd but I pretend:

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Anyone use Logisim?
« Reply #72 on: April 06, 2011, 05:02:18 am »
I hate that there are no diodes in Logisim. makes some things so much harder :\
I'm not a nerd but I pretend:

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Anyone use Logisim?
« Reply #73 on: April 06, 2011, 06:12:17 am »
Diodes? Logisim simulates the logic portion, not the electric portion. ;)
What are you trying to do, anyway, that'd require them? ???
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Anyone use Logisim?
« Reply #74 on: April 06, 2011, 06:41:25 am »
I want to make a little 7segment display calculator... But I can't figure out how to do. It has to do with bit shifters
Edit: wait, does the buffer the same as a diode? :)
« Last Edit: April 06, 2011, 07:11:40 am by aeTIos »
I'm not a nerd but I pretend: