Rcomp-kaniw: Difference between revisions

From EarthMC
Jump to navigation Jump to search
(Created page with "Rcomp-kaniw is a 4-bit computer project in the town of Kaniw, Ukraine. The machine has been allocated a 2x3 chunk area. == Functions == '''ALU FUNCTIONS''' ''0'': Load DataBus 1 into Adder 1 as input A ''1'': Load DataBus 2 into Adder 1 as input B ''2'': Load DataBus 1 into Adder 2 as input A ''3'': Load DataBus 2 into Adder 2 as input B ''4'': Load DataBus 1 into Multiplier as input A ''5'': Load DataBus 2 into Multiplier as input B ''6'': Load DataBus 1 in...")
 
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
Rcomp-kaniw is a 4-bit computer project in the town of [[Kaniw]], Ukraine. The machine has been allocated a 2x3 chunk area.
== About ==


== Functions ==
Rcomp-kaniw is a 4-bit redstone computer project in the town of [[Aurora:Kaniw|Kaniw]], in central Ukraine.


'''ALU FUNCTIONS'''
Note: When ticks are mentioned in this thread, it reffers to redstone ticks per second, which is the total tps / 2. Average servers have a 10 redstone tick per seconds, but EMC has about 5-7.


''0'': Load DataBus 1 into Adder 1 as input A
== Specs ==


''1'': Load DataBus 2 into Adder 1 as input B
Clock: 3 tick on, 3 tick off [around 2-3 Hz]
Memory read/write delay: 2 ticks


''2'': Load DataBus 1 into Adder 2 as input A
== Hardware (planned) ==


''3'': Load DataBus 2 into Adder 2 as input B
'''Primary Bus (PBUS)'''': A bus connected to most components [4bit bus]


''4'': Load DataBus 1 into Multiplier as input A
'''Secondary Bus (SBUS)''': Secondary bus connected to most components [4bit bus]


''5'': Load DataBus 2 into Multiplier as input B
'''Instruction Bus (IBUS)''': Used to transfer instruction data to ALL components. Each component is fitted with a specialised gate that when the right signal is given, turns on the component


''6'': Load DataBus 1 into Bitwise_Calculator as input A
'''Excess Bus (EBUS)''': A bus for holding an additional 4 bits alongside PBUS or SBUS, used when the output is over 4 bits [4bit bus]


''7'': Load Databus 2 into Bitwise_Calculator as input B
'''Comparator Bus (CBUS)''': Holds the results from the last operation by CMP [3bit bus]


'''Arithmetic Unit (AU)''': Performs 4-bit addition and subtraction.


''8'': Run operation: Adder 1 (loads output into CalcBus 1)
'''Bitwise Unit (BU)''': Performs 4-bit bitwise operations of OR, AND, XOR, NOT


''9'': Run operation: Adder 2 (loads output into CalcBus 1)
'''Comparator (CMP)''': Performs comparason operations on two inputs and outputs them on CBUS (>, <, ==)


''A'': Run operation: Adder 1 as negative operation (loads output into CalcBus 1)
'''Multiplier (CMP)''': Performs multiplication operation on two inputs. Output may be over 4 bits, bits 3-7 are loaded onto EBUS


''B'': Run operation: Adder 2 as negative operation (loads output into CalcBus 1)
'''Memory (MEM)''': Can output to either PBUS or SBUS, contains 16 registers that each store 4 bits (a nibble)


''C'': Run operation Multiplier (loads output into CalcBus 1)
'''Clock (C)''': Turns on and off continuesly to keep all components in sync


''D'': Run operation Bitwise_Calculator as & (and) operation (loads output into CalcBus 1)
'''User input (USIN)''': 4-bit interface allowing direct user input into the computer


''E'': Run operation Bitwise_Calculator as ^ (xor) operation (loads output into CalcBus 1)
'''Instruction ROM (IROM)''': Read only memory, holds upto 32 lines of instructions


''F'': Run operation Bitwise_Calculator as | (or) operation (loads output into CalcBus 1)
== Instruction list (4 bit) ==


''' RAM FUNCTIONS'''
Instruction Name: address, arguements , Description


''0'': Write USERINPUT on Register 1


''1'': Write USERINPUT on Register 2
'''NON''': 0, no arguements, "Does nothing"


''2'': Write USERINPUT on Register 3
'''READ''': 1, (arg1: memAddress [4bit], arg2: bus [1bit]), "Reads from memAddress and loads the data into PBUS if arg2 is 0, else loads into SBUS"


''3'': Write USERINPUT on Register 4
'''WRITE''': 2, (arg1: memAddress [4bit], arg2: bus [2bit]), "Writes to memAddress from bus, 00: PBUS, 01: SBUS, 10: EBUS, 11: IBUS"


''4'': Read Register 1 into DataBus 1
'''ADD''': 3, (arg1: fromMemAddress [4bit], arg2: fromMemAddress [4bit]), "Performs ADD operation on values stored in MEM, with arg1 and arg2 being their addresses"


''5'': Read Register 1 into DataBus 2
'''SUB''': 4, (arg1: fromMemAddress [4bit], arg2: fromMemAddress [4bit]), "Performs SUB operation on values stored in MEM, with ang1 and arg2 being their addresses"


''6'': Read Register 2 into DataBus 1
'''MUL''': 5, (arg1: fromMemAddress [4bit], arg2: fromMemAddress[4bit]), "Performs MUL operation on values stored in MEM, with arg1 and arg2 being their addresses. THE OUTPUT OF THIS IS SPLIT INTO TWO BUSES, PBUS or bits 0-3 and EBUS for bits 4-7"


''7'': Read Register 2 into DataBus 2
'''BOR''': 6, (arg1: fromMemAddress [4bit], arg2: fromMemAddress[4bit]), "Performs bitwise OR operation on values stored in MEM, with ang1 and arg2 being their addresses"


''8'': Read Register 3 into DataBus 1
'''BAND''': 7, (arg1: fromMemAddress [4bit], arg2: fromMemAddress[4bit]), "Performs bitwise AND operation on values stored in MEM, with ang1 and arg2 being their addresses"


''9'': Read Register 3 into DataBus 2
'''BXOR''': 8, (arg1: fromMemAddress [4bit], arg2: fromMemAddress[4bit]), "Performs bitwise XOR operation on values stored in MEM, with ang1 and arg2 being their addresses"


''A'': Read Register 4 into DataBus 1
'''BNOT''': 9, (arg1: fromMemAddress [4bit]), "Performs bitwise NOT operation on values stored in MEM, with ang1 being the address"


''B'': Read Register 4 into DataBus 2
'''JMP''': A, (arg1: line [5bit]), "Unconditionally jumps to the line given"


''C'': Write CalcBus 1 on Register 1
'''JMPIF''': B, (arg1: line [5bit], arg2: compare [2bit]), "Jumps to line IF CBUS @ arg2 is TRUE"


''D'': Write CalcBus 1 on Register 2
'''JMPIFNOT''': C, (arg1: line [5bit], arg2: compare[2bit]), "Jumps to line IF CBUS @ arg2 is FALSE"


''E'': Write CalcBus 1 on Register 3
'''SWAPBUS''': D: no arguements, "Swaps the data in PBUS and SBUS"


''F'': Write CalcBus 1 on Register 4
'''HALT''': E: no arguements, "Unconditionally halts the program"




== Helpers ==
== Stakeholders ==


[[File:Doytschreal2.png]] [[DoytschReal]]: resources, design, area
[[File:Doytschreal2.png]] [[DoytschReal|doytschReal]]


Contributes: design, resources, land (owns Kaniw)


== Sponsors ==
[[Kv4x|kv4x]]


[[File:Doytschreal2.png]] [[DoytschReal]]
Contributes: design

Latest revision as of 19:08, 11 December 2023

About

Rcomp-kaniw is a 4-bit redstone computer project in the town of Kaniw, in central Ukraine.

Note: When ticks are mentioned in this thread, it reffers to redstone ticks per second, which is the total tps / 2. Average servers have a 10 redstone tick per seconds, but EMC has about 5-7.

Specs

Clock: 3 tick on, 3 tick off [around 2-3 Hz] Memory read/write delay: 2 ticks

Hardware (planned)

Primary Bus (PBUS)': A bus connected to most components [4bit bus]

Secondary Bus (SBUS): Secondary bus connected to most components [4bit bus]

Instruction Bus (IBUS): Used to transfer instruction data to ALL components. Each component is fitted with a specialised gate that when the right signal is given, turns on the component

Excess Bus (EBUS): A bus for holding an additional 4 bits alongside PBUS or SBUS, used when the output is over 4 bits [4bit bus]

Comparator Bus (CBUS): Holds the results from the last operation by CMP [3bit bus]

Arithmetic Unit (AU): Performs 4-bit addition and subtraction.

Bitwise Unit (BU): Performs 4-bit bitwise operations of OR, AND, XOR, NOT

Comparator (CMP): Performs comparason operations on two inputs and outputs them on CBUS (>, <, ==)

Multiplier (CMP): Performs multiplication operation on two inputs. Output may be over 4 bits, bits 3-7 are loaded onto EBUS

Memory (MEM): Can output to either PBUS or SBUS, contains 16 registers that each store 4 bits (a nibble)

Clock (C): Turns on and off continuesly to keep all components in sync

User input (USIN): 4-bit interface allowing direct user input into the computer

Instruction ROM (IROM): Read only memory, holds upto 32 lines of instructions

Instruction list (4 bit)

Instruction Name: address, arguements , Description


NON: 0, no arguements, "Does nothing"

READ: 1, (arg1: memAddress [4bit], arg2: bus [1bit]), "Reads from memAddress and loads the data into PBUS if arg2 is 0, else loads into SBUS"

WRITE: 2, (arg1: memAddress [4bit], arg2: bus [2bit]), "Writes to memAddress from bus, 00: PBUS, 01: SBUS, 10: EBUS, 11: IBUS"

ADD: 3, (arg1: fromMemAddress [4bit], arg2: fromMemAddress [4bit]), "Performs ADD operation on values stored in MEM, with arg1 and arg2 being their addresses"

SUB: 4, (arg1: fromMemAddress [4bit], arg2: fromMemAddress [4bit]), "Performs SUB operation on values stored in MEM, with ang1 and arg2 being their addresses"

MUL: 5, (arg1: fromMemAddress [4bit], arg2: fromMemAddress[4bit]), "Performs MUL operation on values stored in MEM, with arg1 and arg2 being their addresses. THE OUTPUT OF THIS IS SPLIT INTO TWO BUSES, PBUS or bits 0-3 and EBUS for bits 4-7"

BOR: 6, (arg1: fromMemAddress [4bit], arg2: fromMemAddress[4bit]), "Performs bitwise OR operation on values stored in MEM, with ang1 and arg2 being their addresses"

BAND: 7, (arg1: fromMemAddress [4bit], arg2: fromMemAddress[4bit]), "Performs bitwise AND operation on values stored in MEM, with ang1 and arg2 being their addresses"

BXOR: 8, (arg1: fromMemAddress [4bit], arg2: fromMemAddress[4bit]), "Performs bitwise XOR operation on values stored in MEM, with ang1 and arg2 being their addresses"

BNOT: 9, (arg1: fromMemAddress [4bit]), "Performs bitwise NOT operation on values stored in MEM, with ang1 being the address"

JMP: A, (arg1: line [5bit]), "Unconditionally jumps to the line given"

JMPIF: B, (arg1: line [5bit], arg2: compare [2bit]), "Jumps to line IF CBUS @ arg2 is TRUE"

JMPIFNOT: C, (arg1: line [5bit], arg2: compare[2bit]), "Jumps to line IF CBUS @ arg2 is FALSE"

SWAPBUS: D: no arguements, "Swaps the data in PBUS and SBUS"

HALT: E: no arguements, "Unconditionally halts the program"


Stakeholders

Doytschreal2.png doytschReal

Contributes: design, resources, land (owns Kaniw)

kv4x

Contributes: design