1 bit full adder (no mods) V3!

Mapping related threads and questions go in here!
Post Reply
User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 26 Nov 2013, 22:52

hi this may not intrest all of you but i managed to make a 1 bit full adder in mari0 using logic gates

it is fully expandable.

how to operate:
each button is 1 and if you press 1 button it just means 1. if you press 2 buttons it means 1+1 and if you press 3 buttons it means 1+1+1

there are cubes on the left to press multiple buttons.

screenie! Image
this is the tidierer version

open spoiler below to see how to operate and old version
main screenshot (labeled):
Image
results (show older version but works the same way):

1 button (1)
Image
2 buttons (1+1)
Image
3 buttons (1+1+1)
Image
how to expand:

just make another full adder next to it and instead of the carryout being a display link it up to the carry in of the second one instead of a button (all labled)

also labled all the gates if anyone is intrested.

download:
https://dl.dropboxusercontent.com/u/872 ... 0adder.zip

NEXT STEP:
  • MAKE IT NEATER AND NO LATENCY
  • expand it and make a 7 segment display with rom instead of binary output
  • make proper input (dunno the best way really)
  • make it into a full 8 bit alu and make a cpu as well (would be pretty slow. only way i can think of making a clock is a goomba stepping on a button then off it.)
Last edited by rokit on 29 Nov 2013, 00:03, edited 4 times in total.

User avatar
TurretBot
Posts: 4413
Joined: 15 Mar 2012, 23:18
Contact:

Post » 27 Nov 2013, 06:23

the buttons you use your use key for would probably be the best input,
love it so far I can't wait to see where this goes

EDIT:
would a calculator be possible?
Last edited by TurretBot on 27 Nov 2013, 16:47, edited 1 time in total.

User avatar
TheJonyMyster
Posts: 1795
Joined: 03 Sep 2012, 05:12
Contact:

Post » 27 Nov 2013, 15:44

does it work if you press a different combination of buttons?
like, would pressing the second button alone show as only one?

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 27 Nov 2013, 18:45

TheJonyMyster wrote:does it work if you press a different combination of buttons?
like, would pressing the second button alone show as only one?
Yes

User avatar
TurretBot
Posts: 4413
Joined: 15 Mar 2012, 23:18
Contact:

Post » 27 Nov 2013, 19:06

I forget if you can capture entities with the better level editor but if you can, you should use that

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 27 Nov 2013, 19:19

Turret Opera wrote:I forget if you can capture entities with the better level editor but if you can, you should use that
you cant D:

User avatar
TurretBot
Posts: 4413
Joined: 15 Mar 2012, 23:18
Contact:

Post » 27 Nov 2013, 19:25

rokit boy wrote:
Turret Opera wrote:I forget if you can capture entities with the better level editor but if you can, you should use that
you cant D:
nooooooooooooooo :(

aside from that,
I wrote:would a calculator be possible?

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 27 Nov 2013, 19:44

turret wrote:would a calculator be possible?
yes that was my next planned step , problem is, i know i can use buttons that you can press by E (use rsnor latches for memory) but one thing is how will i label them and 1 more important thing that will take ages is the rom that will connect to the seven segment display. (rom will basically make somethong like 1001 into a set of links that will display a 9)

currently workin on a more compact xor gate (since every adder uses 2 and i plan on making it 4 bit [would mean the max number would be 11111 or 1111 i cant remember {since the last carry out can be used as a 10000 (in binary)}])

edit: its 1111 (15)

User avatar
TurretBot
Posts: 4413
Joined: 15 Mar 2012, 23:18
Contact:

Post » 27 Nov 2013, 20:42

just do 9 check boxes in a row 1 check box for one two checks for two etc

ucenna
Posts: 615
Joined: 11 Jan 2013, 20:06

Post » 27 Nov 2013, 23:08

Well I decided to give the xor gate a go. I managed to make one that only took up 19 (18 if you don't include the target block, which in my case is a light bridge) blocks. I don't have time to get a screenshot up but here's the level code:

Code: Select all

1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2-84-link-20-7,1-52-link-18-6,1-57,1-54-link-17-7,2-84-link-20-6,1-84-link-18-7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1-84-link-20-8,2-56,1-52-link-18-8,1-57,1-54-link-22-8,2-58,1-36-link-22-6,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2-84-link-18-13,1-52-link-23-6,1-57,1-54-link-23-8,2-84-link-21-13,1-84-link-22-7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1-20,1-40,1,1-20,1-40,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2;background=1;spriteset=1;music=2;timelimit=400;scrollfactor=0

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 27 Nov 2013, 23:25

updated
nice one ucenna but ill stick to mine since i know it from memory
Last edited by rokit on 27 Nov 2013, 23:43, edited 1 time in total.

ucenna
Posts: 615
Joined: 11 Jan 2013, 20:06

Post » 27 Nov 2013, 23:40

Mine's updated as well. I managed to compress it to 14 blocks (15 with output) unless you don't mind your output being inverted then it's 13 (14).
Image
Image

Ignore the vertical link to the left, that's for my other model.

Edit:
Thanks, yeah they're hard enough to figure out how to make, let alone to remember.

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 27 Nov 2013, 23:49

ucenna wrote:Mine's updated as well. I managed to compress it to 14 blocks (15 with output) unless you don't mind your output being inverted then it's 13 (14).
Image
Image

Ignore the vertical link to the left, that's for my other model.

Edit:
Thanks, yeah they're hard enough to figure out how to make, let alone to remember.
could you send me the map code for this one?

ucenna
Posts: 615
Joined: 11 Jan 2013, 20:06

Post » 27 Nov 2013, 23:51

sure:

Code: Select all

1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2-84-link-20-7,1-52-link-18-6,1-57,1-54-link-17-7,2-84-link-20-6,1-84-link-18-7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1-84-link-20-8,2-56,1-52-link-18-8,1-57,1-54-link-22-8,2-58,1-36-link-22-6,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2-84-link-18-13,1-52-link-23-6,1-57,1-54-link-23-8,2-84-link-21-13,1-84-link-22-7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2-84-link-7-13,1-52-link-5-10,1-57,1-54-link-9-10,2-84-link-10-13,1-52-link-17-10,1-57,1-54-link-13-10,2-84-link-7-10,1-52-link-10-13,1-57,1-54-link-7-13,2-84-link-15-10,1-84-link-11-10,1-30-link-18-10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1-20,1-40,1,1-20,1-40,1,1,1,1,1,1,1-20,1-40,1,1-20,1-40,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2;background=1;spriteset=1;music=2;timelimit=400;scrollfactor=0
I was too lazy to remove the other one so it's still there.

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 28 Nov 2013, 00:09

ucenna wrote:sure:

Code: Select all

1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2-84-link-20-7,1-52-link-18-6,1-57,1-54-link-17-7,2-84-link-20-6,1-84-link-18-7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1-84-link-20-8,2-56,1-52-link-18-8,1-57,1-54-link-22-8,2-58,1-36-link-22-6,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2-84-link-18-13,1-52-link-23-6,1-57,1-54-link-23-8,2-84-link-21-13,1-84-link-22-7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2-84-link-7-13,1-52-link-5-10,1-57,1-54-link-9-10,2-84-link-10-13,1-52-link-17-10,1-57,1-54-link-13-10,2-84-link-7-10,1-52-link-10-13,1-57,1-54-link-7-13,2-84-link-15-10,1-84-link-11-10,1-30-link-18-10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1-20,1-40,1,1-20,1-40,1,1,1,1,1,1,1-20,1-40,1,1-20,1-40,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2;background=1;spriteset=1;music=2;timelimit=400;scrollfactor=0
I was too lazy to remove the other one so it's still there.
ty

ucenna
Posts: 615
Joined: 11 Jan 2013, 20:06

Post » 28 Nov 2013, 00:25

If your still trying to create rom I have a method. Turns out that minecraft-style RS latchs work. Just put a detector to not gate to laser, that triggers another detector that has a not gate that triggers a laser that activates the first detector. You'll need to add a laser on either side to activate the detector when you want to swap the rom.

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 28 Nov 2013, 20:56

ucenna wrote:If your still trying to create rom I have a method. Turns out that minecraft-style RS latchs work. Just put a detector to not gate to laser, that triggers another detector that has a not gate that triggers a laser that activates the first detector. You'll need to add a laser on either side to activate the detector when you want to swap the rom.
hmmm
nice idea
just mad because i created a REALLY compact 1 bit full adder (could fit 2 per screen) but i mustve wired it wrong somewhere cause it didnt work. btw its: 2 xor gates 2 and gates and an or gate and looks like this:
Image

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 29 Nov 2013, 00:04

updated

User avatar
TurretBot
Posts: 4413
Joined: 15 Mar 2012, 23:18
Contact:

Post » 29 Nov 2013, 01:29

Im sorry but what is the carry in/out?

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 29 Nov 2013, 20:00

Turret Opera wrote:Im sorry but what is the carry in/out?
http://www.youtube.com/watch?v=VBDoT8o4q00

User avatar
TurretBot
Posts: 4413
Joined: 15 Mar 2012, 23:18
Contact:

Post » 06 Mar 2014, 23:45

I made it in SE and tried to expand it but failed

Code: Select all

15;1*71,1-87-true-link-1-20-7-link-2-22-4,1-84-true-link-in-22-3,1-30-false-link-power-24-4,1*8,1-87-true-link-2-8-5-link-1-6-13,1-84-true-link-in-8-4,1-30-false-link-power-10-5,1*2,1-87-true-link-2-13-5-link-1-10-5,1-84-true-link-in-13-4,1-30-false-link-power-15-5,1*5,1-87-true-link-1-20-7-link-2-8-9,1-84-true-link-in-21-4,1-87-true-link-1-23-3-link-2-23-5,1-84-true-link-in-23-4,1*7,1-87-true-link-1-6-13-link-2-7-13,1-84-true-link-in-7-5,1-87-true-link-1-9-4-link-2-9-6,1-84-true-link-in-9-5,1,1-87-true-link-1-10-5-link-2-8-13,1-84-true-link-in-12-5,1-87-true-link-1-14-4-link-2-14-6-link-3-12-9,1-84-true-link-in-14-5,1*6,1-87-true-link-1-22-4-link-2-8-9,1-84-true-link-in-22-5,1*9,1-87-true-link-1-8-5-link-2-7-13,1-84-true-link-in-8-6,1*3,1-87-true-link-1-13-5-link-2-8-13,1-84-true-link-in-13-6,1*3,1-87-true-link-1-10-13-link-2-18-7,1-84-true-link-in-18-6,1-30-false-link-power-20-7,1*21,1-87-true-link-1-10-13-link-2-11-13,1-84-true-link-in-17-7,1-87-true-link-1-19-6-link-2-19-8,1-84-true-link-in-19-7,1*10,1-30-false-link-power-6-9,1-30-false-link-power-7-9,1-30-false-link-power-8-9,1*2,1-30-false-link-power-11-9,1-30-false-link-power-12-9,1-30-false-link-power-13-9,1*4,1-87-true-link-1-11-13-link-2-18-7,1-84-true-link-in-18-8,1*11,1-87-true-link-1-6-13-link-2-7-13,1-87-true-link-1-10-5-link-2-8-13,1-86-true-link-1-6-9-link-2-7-9,1*2,1-87-true-link-1-10-13-link-2-11-13,1-87-true-link-1-20-7-link-2-15-5,1-86-true-link-1-11-9-link-2-12-9,1*44,1-110-in-false-255-255-255,1*6,1-30-false-link-power-13-9,1-30-false-link-power-24-4,1-30-false-link-power-15-5,1*13,1-30-false-link-power-6-13,1-30-false-link-power-7-13,1-30-false-link-power-8-13,1,1-30-false-link-power-10-13,1-30-false-link-power-11-13,1*19,1-68-left-down,1-68-left-down,1-68-left-down,1,1-68-left-down,1-68-left-down,1*14,2*50;backgroundr=92;backgroundg=148;backgroundb=252;spriteset=1;music=overworld.ogg;timelimit=400;scrollfactor=0;fscrollfactor=0

Post Reply