Tweaked forwarding check. Program 3 works with a few stalls

This commit is contained in:
jose.rodriguezlabra
2019-04-12 00:01:27 -04:00
parent 0118debfb9
commit ddf47c7eee
13 changed files with 356 additions and 258 deletions

View File

@@ -5,7 +5,7 @@ module instructionMemory(
output reg [8:0] readData
);
reg [8:0] memory [8:0]; // Maximum of 512 memory locations
reg [8:0] memory [18:0]; // Maximum of 512 memory locations
// Vivado will give warnings of unconnected ports on the "address" bus if they are unused
initial begin
@@ -13,12 +13,19 @@ module instructionMemory(
memory[0] <= 9'b000000000; //Stall
memory[1] <= 9'b000000000; //Stall
memory[2] <= 9'b011000000; //addi
memory[3] <= 9'b011001001; //addi
memory[4] <= 9'b000100000; //load
memory[5] <= 9'b000101010; //load
memory[6] <= 9'b010100010; //add
memory[7] <= 9'b111100000; //shift left
memory[8] <= 9'b111100000; //shift left
memory[3] <= 9'b000000000; //Stall
memory[4] <= 9'b000000000; //Stall
memory[5] <= 9'b011001001; //addi
memory[6] <= 9'b000000000; //Stall
memory[7] <= 9'b000000000; //Stall
memory[8] <= 9'b000100000; //load
memory[9] <= 9'b000000000; //Stall
memory[10] <= 9'b000101010; //load
memory[11] <= 9'b010100010; //add
memory[12] <= 9'b111100000; //shift left
memory[13] <= 9'b111100000; //shift left
memory[14] <= 9'b000000000; //Stall
memory[15] <= 9'b000000000; //Stall
// //Testing all instructions
// memory[6] <= 9'b010100011; //sub