Updated assignment 2 dependency modules (currently 8 errors in compile)
This commit is contained in:
17 files changed
+412
-14
No files matched your search
@@ -8,14 +8,14 @@ module instruction_counter #(parameter width=5)(
|
||||
);
|
||||
|
||||
logic [2**width-1:0] pc;
|
||||
always_ff (@posedge clk) begin
|
||||
always_ff @(posedge clk) begin
|
||||
if (we) begin
|
||||
pc <= W
|
||||
else
|
||||
pc <= W;
|
||||
end else begin
|
||||
pc <= pc + 4;
|
||||
end
|
||||
end
|
||||
|
||||
assign addr = pc;
|
||||
endmodule
|
||||
`endif
|
||||
`endif
|
||||
Reference in new issue
Block a user