Idek what ive changed its been so long
This commit is contained in:
@@ -5,7 +5,7 @@ module instructionMemory(
|
||||
output reg [8:0] readData
|
||||
);
|
||||
|
||||
reg [8:0] memory [5:0]; // Maximum of 512 memory locations
|
||||
reg [8:0] memory [6:0]; // Maximum of 512 memory locations
|
||||
// Vivado will give warnings of unconnected ports on the "address" bus if they are unused
|
||||
|
||||
initial begin
|
||||
@@ -15,7 +15,8 @@ module instructionMemory(
|
||||
memory[2] <= 9'b000101000; //load
|
||||
memory[3] <= 9'b010100010; //add
|
||||
memory[4] <= 9'b111100000; //shift left
|
||||
memory[5] <= 9'b111100000; //shift left
|
||||
memory[5] <= 9'b000000001; //NOP
|
||||
memory[6] <= 9'b111100000; //shift left
|
||||
|
||||
// //Testing all instructions
|
||||
// memory[6] <= 9'b010100011; //sub
|
||||
|
||||
Reference in New Issue
Block a user