Skip to content

Commit

Permalink
lookup_serial: make write_ready independent of write_valid
Browse files Browse the repository at this point in the history
  • Loading branch information
micprog committed Jun 28, 2024
1 parent 0e1fb67 commit 74aa414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snitch_icache_lookup_serial.sv
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ module snitch_icache_lookup_serial #(
tag_wdata = {1'b1, write_error_i, write_tag_i};
tag_write = 1'b0;

write_ready_o = 1'b0;
write_ready_o = 1'b1;
in_ready_o = 1'b0;
req_valid = 1'b0;

Expand All @@ -120,12 +120,12 @@ module snitch_icache_lookup_serial #(
tag_enable = '1;
tag_wdata = '0;
tag_write = 1'b1;
write_ready_o = 1'b0;
end else if (write_valid_i) begin
// Write a refill request
tag_addr = write_addr_i;
tag_enable = $unsigned(1 << write_set_i);
tag_write = 1'b1;
write_ready_o = 1'b1;
end else if (in_valid_i) begin
// Check cache
tag_enable = '1;
Expand Down

0 comments on commit 74aa414

Please sign in to comment.