URL
https://opencores.org/ocsvn/altor32/altor32/trunk
Subversion Repositories altor32
Compare Revisions
- This comparison shows the changes necessary to convert path
/altor32/trunk
- from Rev 44 to Rev 45
- ↔ Reverse comparison
Rev 44 → Rev 45
/rtl/cpu/altor32_dcache.v
140,8 → 140,6
|
wire [31:0] line_address; |
|
wire [31:0] muxed_address = (state == STATE_IDLE) ? address_i : req_address; |
|
// Current state |
parameter STATE_IDLE = 0; |
parameter STATE_SINGLE = 1; |
159,6 → 157,8
parameter STATE_FLUSH4 = 13; |
reg [3:0] state; |
|
wire [31:0] muxed_address = (state == STATE_IDLE) ? address_i : req_address; |
|
assign tag_entry = muxed_address[CACHE_LINE_ADDR_WIDTH + CACHE_LINE_SIZE_WIDTH - 1:CACHE_LINE_SIZE_WIDTH]; |
assign cache_address = {tag_entry, muxed_address[CACHE_LINE_SIZE_WIDTH-1:2]}; |
|