Add: power test source code

This commit is contained in:
brice.boisson
2023-11-29 10:39:48 +09:00
parent 5e93084239
commit 479f110cd7
5 changed files with 164 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
module instruction (input [31:0] address,
output [31:0] instruction);
reg [7:0] memory [1024:0];
reg [7:0] memory [1023:0];
assign instruction = {memory[address + 3], memory[address + 2], memory[address + 1], memory[address]};

View File

@@ -8,7 +8,7 @@ module memory (input clock, reset,
`include "mem_func.vh"
reg [7:0] memory [127:0];
reg [7:0] memory [1023:0];
always @(posedge clock, posedge reset) begin
if (reset == 1)