Jump to content

Memory Bank: Difference between revisions

No edit summary
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{BlockInfoBox
{{BlockInfoBox
|title=Memory Bank
|title=Memory Bank
|model=
|model={{#widget:ModelViewer
  |src=https://survivalcraft.wiki/content/Models/MemoryBank.glb
  |alt=Memory Bank
  |width=240px
  |height=165px
  |cameraControls=true
  |cameraOrbit=232deg 86deg 8m
  |disableZoom= true
  |disablePan=true
  |disableTap=true
  |loading=eager
  |interactionPrompt=none
  |maxFieldOfView= 25deg
  }}
|id=186
|blockID=186
|isStackable=yes
|isStackable=yes
|maxStackSize=40
|maxStackSize=40
|isFlammable=no
|isFlammable=yes
|isFluidBlocker=no
|diggingMethod=axe
|diggingResilience=1
}}
}}


Line 67: Line 85:


{{MessageBox
{{MessageBox
|text=Do NOT edit the bank when it's in-hand if you are in any survival mode. The game has a bug that will delete all banks in the selected slot EXCEPT ONE! Once a bank is programmed, it becomes unique and cannot share an inventory slot with any other item, but you can hold a full stack of unprogrammed banks. If you edit the stack as a whole, the game gets confused and will turn the entire stack into just one single (programmed) bank. Losing an entire stack of memory banks in survival mode can be very frustrating!
|text='''Warning:''' Do NOT edit the bank when it's in-hand if you are in any survival mode. The game has a bug that will delete all banks in the selected slot EXCEPT ONE! Once a bank is programmed, it becomes unique and cannot share an inventory slot with any other item, but you can hold a full stack of unprogrammed banks. If you edit the stack as a whole, the game gets confused and will turn the entire stack into just one single programmed bank. Losing an entire stack of memory banks in survival mode can be very frustrating!
|border= 1px solid #9f3526
|border= 1px solid #9f3526
|backgroundColor= #ffe9e5
|backgroundColor= #ffe9e5
Line 121: Line 139:
You can copy the number below and paste it, if you like.
You can copy the number below and paste it, if you like.


F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000F
F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000
F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000F0000000000000000
F0000000000000000F0000000000000000F0000000000000000F


This same circuit can be used for other compare functions, such as "less than" or "greater or equal" by simply changing the memory's 'matrix'. With more complicated programming, you could even have a "close-to" function output. This could be something like, "the output is 'F' when the inputs are exactly the same and it is '8' if the difference is 1 or '4' if the difference is 2 or '0' if it's more". That's just one example of a more complicated compare function and is usually called 'fuzzy' math.
This same circuit can be used for other compare functions, such as "less than" or "greater or equal" by simply changing the memory's 'matrix'. With more complicated programming, you could even have a "close-to" function output. This could be something like, "the output is 'F' when the inputs are exactly the same and it is '8' if the difference is 1 or '4' if the difference is 2 or '0' if it's more". That's just one example of a more complicated compare function and is usually called 'fuzzy' math.
Line 177: Line 197:


Here's the linear stream for it:
Here's the linear stream for it:
01234567123456781234567823456789234567893456789A3456789A456789AB456789AB56789ABC56789ABC6789ABCD6789ABCD789ABCDE789ABCDE89ABCDEF123456780000000023456789000000003456789A00000000456789AB0000000056789ABC000000006789ABCD00000000789ABCDE0000000089ABCDEF00000000
01234567123456781234567823456789234567893456789A3456789A456789AB456789AB56789ABC56789ABC
6789ABCD6789ABCD789ABCDE789ABCDE89ABCDEF123456780000000023456789000000003456789A00000000
456789AB0000000056789ABC000000006789ABCD00000000789ABCDE0000000089ABCDEF00000000


Remember that the number input can only be from 0 through 7 and repeats under the carry portion. Where the matrix has a 'D' input for example, the number input is actually a '5' but the carry is also a +1. If take the previous example of 5 + 4 and assume the carry is +1, we will go to the 'D' at the top (which is 5 +carry) and follow it down until it crosses the '4' row. (Carry only applies to one input.) The answer is 'A', or 10. (5 + 4) + 1 = 10
Remember that the number input can only be from 0 through 7 and repeats under the carry portion. Where the matrix has a 'D' input for example, the number input is actually a '5' but the carry is also a +1. If take the previous example of 5 + 4 and assume the carry is +1, we will go to the 'D' at the top (which is 5 +carry) and follow it down until it crosses the '4' row. (Carry only applies to one input.) The answer is 'A', or 10. (5 + 4) + 1 = 10
Line 205: Line 227:
==Additional Information==
==Additional Information==
More information on creating the clock input signal can be found [[Write_Encoder|on this page.]] It provides simpler ways to convert the voltages.
More information on creating the clock input signal can be found [[Write_Encoder|on this page.]] It provides simpler ways to convert the voltages.
[[Category:Electricity]]
[[Category:Electricity]]
[[Category:Electrics]]
[[Category:Electrics]]
[[Category:Electric Chip]]
[[Category:Electric Chip]]
[[Category:Crafted]]
[[Category:Crafted]]