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 62fc88f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.


## Unreleased
### Fixed
- lookup_serial: Make `write_ready_o` independent of `write_valid_i`.

## 0.1.1 - 28.06.2024
### Added
Expand Down
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 62fc88f

Please sign in to comment.