Skip to content

Commit

Permalink
Fix incorrect CSR result data buffering assignment
Browse files Browse the repository at this point in the history
If the CSR result has delayed data, then the delayed data needs to be
buffered, rather than non-delayed data.
  • Loading branch information
michael-platzer committed Jun 15, 2022
1 parent ce769e6 commit d3c1cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtl/vproc_result.sv
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ module vproc_result #(
// be buffered as well
if (result_csr_delayed_q) begin
result_csr_delayed_d = 1'b0;
result_csr_data_d = result_csr_data_i;
result_csr_data_d = result_csr_data_delayed_i;
end

if (result_source == RESULT_SOURCE_EMPTY_BUF) begin
Expand Down

0 comments on commit d3c1cf8

Please sign in to comment.