Arithmetic Logic Units with Redstone

Поділитися
Вставка
  • Опубліковано 19 січ 2025

КОМЕНТАРІ • 80

  • @iPlayGamesX
    @iPlayGamesX  2 роки тому +9

    Small comment: For this ALU to be pipelinable, the repeater on the right of the "half adder" has to be 4gt, so on its second setting. This means that for 20GT of input, the output will also last 20GT.

  • @Brakkabob
    @Brakkabob Рік тому +6

    This is exactly what I've been looking for, thank you for making this video

    • @iPlayGamesX
      @iPlayGamesX  Рік тому +1

      Glad to be helpful! If you're new to computational Redstone I highly suggest joining ORE btw.

  • @Bogi494
    @Bogi494 5 місяців тому +2

    Most useful redstone ALU video I found. Thank you. Even though I think the explanation was a bit rushed I will still try my best to fully understand this ALU.

    • @iPlayGamesX
      @iPlayGamesX  5 місяців тому +2

      Yeah sorry, my old videos are quite bad. Good luck!

    • @Bogi494
      @Bogi494 5 місяців тому

      @@iPlayGamesX Also what are the .schem files in the description for and how do I use them

    • @Bogi494
      @Bogi494 5 місяців тому

      Never mind I found out how to use the .schem files. Thanks the files really helped!

    • @Bogi494
      @Bogi494 5 місяців тому +1

      @@iPlayGamesX Sorry if I'm wasting your time, if you can please explain to me if you can subtract on the second ALU design and how?

    • @iPlayGamesX
      @iPlayGamesX  5 місяців тому +1

      @@Bogi494 I'd appreciate if you asked future questions in my Discord btw. You invert the value that'll be negative and add carry in.

  • @JibsterGames
    @JibsterGames Рік тому +3

    I just want to note that at 1:53 the rerouting causes a lower layer COUT to also power the COUT of an upper layer, you can fix this by instead of using the powered block as a floor for the next layer to work around and it and make the floor for the repeater for the SUM bit a target block so it still passes through to the other side as usual

    • @iPlayGamesX
      @iPlayGamesX  Рік тому +1

      Oopsie

    • @TulhoKay
      @TulhoKay 5 місяців тому

      "I spent a good half hour looking at your comment trying to figure out how to do it. Working with stacked circuits is chaotic and cramped. Well, at least it worked. Time to implement a 32-bit RISC-V. Thanks for the help!"

  • @ahkilleux
    @ahkilleux 4 місяці тому +1

    I just listened to this Helena Blavatsky book.
    The guy reading it has your exact same speech patterns.

    • @iPlayGamesX
      @iPlayGamesX  4 місяці тому +1

      He's probably a fellow Slav then, I'm Slovenian! Some of our speech patterns bleed through since our language organizes words differently.

  • @jespervanbommel
    @jespervanbommel 4 місяці тому +1

    does this (the second cca design) still work on 1.20.4? i tried it, and i had to either turn the comparator thats right after another comparator on greater than mode, not on subtract mode or i also could place a repeater instead of a target block in between these two comparators.

    • @iPlayGamesX
      @iPlayGamesX  4 місяці тому

      I don't know but it should. Please take this on my Discord and feel free to send screenshots!

  • @proceduralism376
    @proceduralism376 Рік тому +1

    Isn't the AND in your alu circuit kinda useless? For carry cancel you can use XNOR and NOR, that would make it more compact.

    • @iPlayGamesX
      @iPlayGamesX  Рік тому +1

      Doesn't necessarily make it more compact, the layout for the ALU is a bit outdated tho.

    • @tabcaps5819
      @tabcaps5819 8 місяців тому +1

      @@iPlayGamesX Don’t tell me the redstone hive mind managed to make it even smaller…
      It’s already on the edge of collapsing in-on itself
      (No offense, I just like to think of the redstone community as a constantly improving hive mind reiterating on everything
      [I do medium amounts of redstone])

    • @iPlayGamesX
      @iPlayGamesX  8 місяців тому

      @@tabcaps5819 Lol fair. I don't interact with the main community developing these conventional technologies anymore but yeah, there's constant improvement. That, and the design wasn't state of the art when I made a video on it either :P

  • @Explosion1000
    @Explosion1000 Рік тому +1

    Can this ALU also do bitwise shifts?

    • @iPlayGamesX
      @iPlayGamesX  Рік тому

      Nah, you'd have to implement them on your own. Left shift is just A+A, right shift is usually hardware implemented tho. These ALUs are made with ORE's builder application criteria in mind, and truth be told I didn't know about right shift when I first made the video.

  • @JumpercraftYT
    @JumpercraftYT 9 місяців тому

    thanks. this video is amazing and really helpful!

    • @iPlayGamesX
      @iPlayGamesX  9 місяців тому

      Quite old tho, keep that in mind!

    • @Theodore001
      @Theodore001 9 місяців тому +1

      @@iPlayGamesXStill works amazingly tho!… km rn studying ur alu and your ram. I recently joined ore bc of Mattbatwings and you are doing so wood with learning type of content that I and other students in computational logic need to grow in our boolean!

    • @iPlayGamesX
      @iPlayGamesX  9 місяців тому

      @@Theodore001 Oh lol I'm working on a new channel with a few friends. Thanks a lot, altho it's very far from perfect. Not a fan of this old content. ORE is kinda dead to me tho. Used to be there but I quit.

    • @Theodore001
      @Theodore001 8 місяців тому

      @@iPlayGamesX What channel? I heard you left Ore due to drama but do you still do minecraft computational Redstone?

    • @iPlayGamesX
      @iPlayGamesX  8 місяців тому

      @@Theodore001 I do! The channel isn’t public yet and won’t be for a few months, but I will be posting a link on here once it’s ready. We want to create a backlog.

  • @kingananas2.0
    @kingananas2.0 Рік тому +1

    How does Subtraction work?

    • @iPlayGamesX
      @iPlayGamesX  Рік тому

      It uses a concept called 2's complement! I suggest looking it up, there's many videos explaining it- but in practice, you achieve it by turning one of the values negative, which you do by inverting it, and adding 1 to it (or the result)
      in practice, this achieves an overflow of the exact amount it is negative for, and as we don't measure overflow, we achieve subtraction.

    • @kingananas2.0
      @kingananas2.0 Рік тому +1

      @@iPlayGamesX Ik how it works but when I tried it it gave a wrong result

    • @iPlayGamesX
      @iPlayGamesX  Рік тому

      @@kingananas2.0 Feel free to join my Discord server and send screenshots

    • @kingananas2.0
      @kingananas2.0 Рік тому

      @@iPlayGamesX the invite is expired

    • @iPlayGamesX
      @iPlayGamesX  Рік тому

      @@kingananas2.0 shouldn't be on my latest videos

  • @miguelflores-acton8581
    @miguelflores-acton8581 7 місяців тому +1

    Great video

  • @pasty0358
    @pasty0358 Рік тому +1

    Can it do +1 and -1?

    • @iPlayGamesX
      @iPlayGamesX  Рік тому

      Should be able to yes, it uses 2's comp.

    • @DoxxTheMathGeek
      @DoxxTheMathGeek Рік тому

      @@iPlayGamesX How do you add one for 2's compliment?

  • @hightech9763
    @hightech9763 5 місяців тому

    which design is faster

    • @iPlayGamesX
      @iPlayGamesX  5 місяців тому

      The last one, tho there are faster designs elsewhere

  • @NickoDheynnielAlcorroque
    @NickoDheynnielAlcorroque 7 місяців тому +1

    Does this work in bedrock?

    • @iPlayGamesX
      @iPlayGamesX  7 місяців тому

      It should. Replace the glass towers with glowstone as it depends on it being one way. Been a while since I've touched the builds in this video tho!

  • @Iamskulls_
    @Iamskulls_ 8 місяців тому

    How to do subtraction on cca alu

    • @iPlayGamesX
      @iPlayGamesX  8 місяців тому

      invert the value you want to negate and add carry in. This works via 2's complement.

    • @Iamskulls_
      @Iamskulls_ 8 місяців тому

      So i could just hook up an second cca?

    • @Iamskulls_
      @Iamskulls_ 8 місяців тому

      Oh wait i got it tysm

    • @iPlayGamesX
      @iPlayGamesX  8 місяців тому

      @@Iamskulls_ Cool!

  • @flaggingcheesy9221
    @flaggingcheesy9221 8 місяців тому

    how to do subtraction?

    • @fayenx
      @fayenx 7 місяців тому

      Subtraction:
      A inputs are normal. B inputs are inverted and carry in is on, e.g:
      5(0101)-3(0011). Invert bits so 0011 becomes 1100 then turn on carry in (add 1). The answer will be 0010 (2). Subtraction only works in 2s compliment range meaning it goes from +7 all the way to -7 and negative numbers are different e.g. 2 = 0010 but -2 = 1110. Mattbatwings explains it better I am not good at explaining sorry if I don't make sense

    • @fayenx
      @fayenx 7 місяців тому

      I just notice you inanimate insanity profile picture 😂

  • @DoxxTheMathGeek
    @DoxxTheMathGeek Рік тому

    Really helpfull!
    Thank you!

    • @iPlayGamesX
      @iPlayGamesX  Рік тому

      Didn't see the comment ^^
      Glad you've found it useful!

    • @DoxxTheMathGeek
      @DoxxTheMathGeek Рік тому +1

      @@iPlayGamesX Do you know the ORE Server? I'm buider now. Thank you so much!

    • @iPlayGamesX
      @iPlayGamesX  Рік тому

      @@DoxxTheMathGeek Yeah I'm active on ORE! My disc is @ahauser1 and my ign is AhaWarrior1.

  • @Cheeesebbbbbbb
    @Cheeesebbbbbbb 8 місяців тому +1

    Degree level in
    computer science 🚫
    Minecraft ✅

  • @CybernetonPL
    @CybernetonPL 11 місяців тому +1

    hey there, Im a young electrical engineer or should I say, I try to engineer redstone circuits, but I've stumbled across a chinese Minecraft ripoff, now everyone calls it a ripoff so they dont even try it, but i did, and bro, Its sick, my question is, would you be so kind and make a video about it, idc what you say, but just so the popularity goes up, just so maybe more english players join the community cuz the average lobby i join is vietnamese, no disrespect here. Now I wanted to let everyone know, that I build the fastest "redstone computer" in game, obviously the games equivalent is not called redstone, but I think we can group this gaming category into redstone engineereing, cuz everyone does it in minecraft, but there were porjects in terraria, and so I want to be the first creator on actually doing it in a minecraft ripoff, cuz Miniworld (that ripoffs name) does look like it has the ptential.

    • @iPlayGamesX
      @iPlayGamesX  11 місяців тому +1

      I only and specifically do Minecraft Java edition

    • @CybernetonPL
      @CybernetonPL 11 місяців тому +1

      well,@@iPlayGamesX you better accept the challenge then! I'm challenging all redstoners around the world for the fastest computer, no hardware acceleration aka no tickspeed manipulation. I'm creating a dicsord server for this if anyone wanna join

    • @iPlayGamesX
      @iPlayGamesX  11 місяців тому +1

      @@CybernetonPL I'm not playing a different game. Is this challenge for Minecraft Java edition?

    • @CybernetonPL
      @CybernetonPL 11 місяців тому +1

      @@iPlayGamesX it's for any game that has those block building mechanics. Along as its not a literal digital logic simulator but an actual block building game. There aren't many minecraft ripoff I know of that have redstone. But Miniworld does. I'm challenging everyone and anyone for building a computer, in my case it's just a calculator cuz I'm dumb, to make it as fast as possible. You can use any technique, except for artificial hardware acceleration. So ive seen games on redstone computers running mijecraft inside minecraft, but they lack 1 thing: speed. Every creator uses some tickspeed acceleration mode and runs it on external servers that probably are on nasa computers, to speed up the game by 1000 + x. This is what I consider cheating. In real world you can't rly make cpus 1000x faster. So just don't use this technique. Plus I wanna prove that thus mc clone is faster, for that we can only use the basegame not some mods that literally modify the games source code, it doesn't matter whether or not you have direct acces to those mods using a built in command line. Just don't use tick acceleration, the goal is simulating hardware in the actual game to make the time measurements for which one is faster as accurate as possible.

    • @CybernetonPL
      @CybernetonPL 11 місяців тому

      And obviously the measurements are taken based on the calculations the system does. So you compare a 4 digit decimal calculator to 4 digit decimal calculator. Not to a computer running minecraft in minecraft

  • @analyzers9335
    @analyzers9335 2 роки тому +1

    Do a vid on cache >:)

  • @Vipahse
    @Vipahse 11 місяців тому

    xnor gate works wierd

    • @iPlayGamesX
      @iPlayGamesX  11 місяців тому

      Yeah this is a rly old video, consider looking for another one. I didn't have much idea of what I was doing when I made it.

  • @sandwich-e4p
    @sandwich-e4p 2 місяці тому +1

    pls next time give detail of what you add instead of just adding it so we can understand what we're doing
    JESUS LOVES YOU!❤

    • @iPlayGamesX
      @iPlayGamesX  2 місяці тому

      1- Its binary, if you don't know as much you have no use for the technology to begin with. Learn that before watching this video, elsewhere.
      2-Jesus doesn't love me, I'm bisexual

  • @ELITE-CHIEF-DRILL-MAN-ko3yp
    @ELITE-CHIEF-DRILL-MAN-ko3yp 5 місяців тому

    I don’t understand at all
    Even with the stop and go it’s to fast