Added initialisation blocks for PC and GPR's
This commit is contained in:
2 files changed
+7
-1
No files matched your search
@@ -8,6 +8,11 @@ module instruction_counter #(parameter width=5)(
|
||||
);
|
||||
|
||||
logic [2**width-1:0] pc;
|
||||
|
||||
initial begin
|
||||
pc = {(2**width){1'b0}};
|
||||
end
|
||||
|
||||
always_ff @(posedge clk) begin
|
||||
if (we) begin
|
||||
pc <= W;
|
||||
|
||||
Reference in new issue
Block a user