<style> .reveal { font-size: 32px; } </style> # 邏輯紅石 `### & HyperSoWeak` ![image](https://hackmd.io/_uploads/Hk3ko0XXC.png =50%x) --- ## Minecraft, M3? ![minecraft](https://hackmd.io/_uploads/BkhooKq7C.png) ---- ## Redstone is quite simple, right? ![image](https://hackmd.io/_uploads/HJRq0tqQC.png) --- ## Circuit Component Introduction ---- ### Redstone torch ![image](https://hackmd.io/_uploads/H1MbDa_b0.png =15%x) ![image](https://hackmd.io/_uploads/ryHVrAuZA.png =17%x) ---- ### Redstone dust = Wire ![image](https://hackmd.io/_uploads/HyfRSaOW0.png) ---- ### Redstone repeater = Buffer + Delay ![image](https://hackmd.io/_uploads/ryHv86OWC.png =25%x) ![image](https://hackmd.io/_uploads/B1sgT5s-A.png) ---- ### Redstone repeater (Lock Mode) ![2024-05-17_02.02.17](https://hackmd.io/_uploads/SyD2cpXmR.png =50%x) ---- ### Redstone Comparator ![image](https://hackmd.io/_uploads/Skg8HnQ70.png=20%x) ![image](https://hackmd.io/_uploads/HJLV2pQmR.png =35%x) ---- ### Redstone Comparator (Comparison Mode) ![image](https://hackmd.io/_uploads/HyK_opQQR.png=20%x) $output = rear \times [(left \leq rear) \land (right \leq rear)]$ ---- ### Redstone Comparator (Subtraction Mode) ![image](https://hackmd.io/_uploads/Skg8HnQ70.png=20%x) $output = max(rear − max(left, right), 0)$ ---- ### Redstone lamp ![image](https://hackmd.io/_uploads/H12YgAuW0.png =20%x) ![image](https://hackmd.io/_uploads/BJLKZCdbA.png =20%x) --- ## Fundamental Circuit Gate Introduction ---- ### AND Gate ![image](https://hackmd.io/_uploads/ryl9U0dbR.png =75%x) ---- ### OR Gate ![image](https://hackmd.io/_uploads/S14ASC_-R.png =75%x) ---- ### !Gate ![image](https://hackmd.io/_uploads/rJjQOA_WA.png =75%x) ---- ### Fun fact: NOT gate is a gate, ### but Bill Gates is NOT a gate ![image](https://hackmd.io/_uploads/rJREEA_-0.png) ![image](https://hackmd.io/_uploads/H19KXA_-R.png =45%x) ![Bill-Gates-meme-4](https://hackmd.io/_uploads/Hk2GvB9mA.jpg =40%x) ---- ### XOR Gate ![image](https://hackmd.io/_uploads/rkI5rCuZR.png =75%x) ---- ### More Gates! ![image](https://hackmd.io/_uploads/SklktB9QR.png) ![image](https://hackmd.io/_uploads/Skva_ScXA.png =20%x) ![image](https://hackmd.io/_uploads/Syue_Sqm0.png =18%x) ![image](https://hackmd.io/_uploads/Hk7QuS97C.png =20%x) We will not talk about this QwQ<!-- .element: class="fragment" data-fragment-index="1" --> --- ## What elements does a redstone calculator have? - Keyboard (Input) $\xrightarrow{}$ Encoder $\xrightarrow{}$ BCD $\xrightarrow{}$ Binary $\xrightarrow{}$ Memory $\xrightarrow{}$ Calculate $\xrightarrow{}$ Memory $\xrightarrow{}$ Binary $\xrightarrow{}$ BCD $\xrightarrow{}$ Decoder $\xrightarrow{}$ 7 Segment Display (Output) <!-- .element: class="fragment" data-fragment-index="1" --> --- ## Encoder / Decoder ![image](https://hackmd.io/_uploads/SykJK6mXC.png) (3 to 8 decoder) ---- ## Encoder / Decoder ![2024-05-17_03.08.24](https://hackmd.io/_uploads/Byg0Y07mA.png) --- ## Memory ![image](https://hackmd.io/_uploads/Hyx6Yt5m0.png) ---- ## Read Only Memory (ROM) easy ---- ## Random Access Memory (RAM) - Read - Write - Clear ---- ## Latch ![image](https://hackmd.io/_uploads/HJntBa7mC.png =30%x) ![2024-05-17_03.06.31](https://hackmd.io/_uploads/SyY8tRX70.png =50%x) --- ## Let's Do Some Arithmetic! --- ## Digital Signal Adder ---- ### Half Adder ![image](https://hackmd.io/_uploads/Hys02pO-R.png) ---- ### Full Adder ![image](https://hackmd.io/_uploads/Bk_WT6OZA.png =26%x) ![image](https://hackmd.io/_uploads/rkE96aOZR.png =50%x) - $S = A \oplus B \oplus C_{in}$ - $C_{out} = AB + BC_{in} + AC_{in}$ ---- ### RCA (Ripple-Carry Adder) ![image](https://hackmd.io/_uploads/B17ippdbC.png) ---- ### CLA (Carry-Lookahead Adder) Faster! ![image](https://hackmd.io/_uploads/S1wsp6O-A.png) ---- ### CCA (Carry-Cancel Adder) Fasterererer! ![2024-05-17_03.00.38~1](https://hackmd.io/_uploads/rJoRdR7mR.png) ---- ## BCD to Binary ![2024-05-17_03.00.22~1](https://hackmd.io/_uploads/SysCORQ70.png) --- ## Dreamy Subtractor Addiction Use 2's complement, yay --- ## Neat Multiplier Spatial Layout --- ## Divider's Secret Algorithm --- ## Binary to BCD Double Dabble Algorithm --- ## Yay 下課 ---
{"slideOptions":"{\"transition\":\"slide\"}","title":"Redstone - slide","contributors":"[{\"id\":\"023479a5-db5b-4251-8691-69550cf1f264\",\"add\":3877,\"del\":1320},{\"id\":\"ca3776a5-cc5c-46ed-85a2-38e3e36ca2e7\",\"add\":2296,\"del\":575}]","description":"### & HyperSoWeakimage"}
    106 views