verilator does not support delayed assignment in a loop
This commit is contained in:
@@ -57,7 +57,12 @@ module VX_csr_data (
|
|||||||
always @(posedge clk or posedge reset) begin
|
always @(posedge clk or posedge reset) begin
|
||||||
if (reset) begin
|
if (reset) begin
|
||||||
for (curr_e = 0; curr_e < 1024; curr_e=curr_e+1) begin
|
for (curr_e = 0; curr_e < 1024; curr_e=curr_e+1) begin
|
||||||
|
`ifdef VERILATOR
|
||||||
|
// - Verilator does not support delayed assignment in loops.
|
||||||
|
csr[curr_e] = 0;
|
||||||
|
`else
|
||||||
csr[curr_e] <= 0;
|
csr[curr_e] <= 0;
|
||||||
|
`endif
|
||||||
end
|
end
|
||||||
cycle <= 0;
|
cycle <= 0;
|
||||||
instret <= 0;
|
instret <= 0;
|
||||||
@@ -79,4 +84,4 @@ module VX_csr_data (
|
|||||||
read_instreth ? instret[63:32] :
|
read_instreth ? instret[63:32] :
|
||||||
{{20{1'b0}}, csr[in_read_csr_address]};
|
{{20{1'b0}}, csr[in_read_csr_address]};
|
||||||
|
|
||||||
endmodule
|
endmodule : VX_csr_data
|
||||||
|
|||||||
Reference in New Issue
Block a user