Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rtl,rv_core_ibex] Mask off lower bits of mapping address #23182

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions hw/ip/rv_core_ibex/rtl/rv_core_addr_trans.sv
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ module rv_core_addr_trans import rv_core_ibex_pkg::*; #(

// if there is a match, mask off the address bits and remap
// if there is no match, just use incoming address
assign addr_o = sel_match ? addr_i & sel_region.output_mask | sel_region.remap_addr :
addr_i;
assign addr_o = sel_match ?
(addr_i & sel_region.output_mask) | (sel_region.remap_addr & ~sel_region.output_mask) :
addr_i;

// unused clock/reset, only needed for assertions
logic unused_clk;
Expand Down
Loading