Added string compare to instruction and data memory

This commit is contained in:
Johannes
2019-03-24 14:14:28 -04:00
parent 395a8b6f8f
commit ee9e420365
10 changed files with 138 additions and 78 deletions

View File

@@ -9,17 +9,18 @@ module dataMemory(
reg [8:0] memory [15:0];
initial begin
memory[0] <= 9'b000000000;
memory[1] <= 9'b000000000;
memory[2] <= 9'b000000000;
memory[3] <= 9'b000000000;
memory[4] <= 9'b000000000;
memory[5] <= 9'b000000000;
memory[6] <= 9'b000000000;
// String Compare Memory
memory[0] <= 9'b000000100;
memory[1] <= 9'b000001000;
memory[2] <= 9'b000001100;
memory[3] <= 9'b010101010;
memory[4] <= 9'b000001111;
memory[5] <= 9'b000000100;
memory[6] <= 9'b000000011;
memory[7] <= 9'b000000000;
memory[8] <= 9'b000000000;
memory[9] <= 9'b000000000;
memory[10] <= 9'b000000000;
memory[8] <= 9'b000001111;
memory[9] <= 9'b000000100;
memory[10] <= 9'b000000010;
memory[11] <= 9'b000000000;
memory[12] <= 9'b000000000;
memory[13] <= 9'b000000000;