Make index/tag assignments parametric in ptw.

This commit is contained in:
Michael Schaffner 2018-11-05 20:33:57 +01:00
parent 32354ac49d
commit 4c41a534b9
No known key found for this signature in database
GPG key ID: 7AA09AE049819C2C

View file

@ -99,8 +99,8 @@ module ptw #(
assign ptw_active_o = (state_q != IDLE);
assign walking_instr_o = is_instr_ptw_q;
// directly output the correct physical address
assign req_port_o.address_index = ptw_pptr_q[11:0];
assign req_port_o.address_tag = ptw_pptr_q[55:12];
assign req_port_o.address_index = ptw_pptr_q[DCACHE_INDEX_WIDTH-1:0];
assign req_port_o.address_tag = ptw_pptr_q[DCACHE_INDEX_WIDTH+DCACHE_TAG_WIDTH-1:DCACHE_INDEX_WIDTH];
// we are never going to kill this request
assign req_port_o.kill_req = '0;
// we are never going to write with the HPTW