Skip to content
Open
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
12 changes: 1 addition & 11 deletions Libraries/AMBA_TLM2/Axi/AxiDefines.bsv
Original file line number Diff line number Diff line change
Expand Up @@ -569,17 +569,7 @@ function AxiWrData#(`TLM_PRM) getFirstAxiWrData (RequestDescriptor#(`TLM_PRM) tl
endfunction

function AxiByteEn#(`TLM_PRM) getAxiByteEn (RequestDescriptor#(`TLM_PRM) tlm_descriptor);
Bit#(TLog#(SizeOf#(AxiByteEn#(`TLM_PRM)))) addr = zExtend(tlm_descriptor.addr);
AxiByteEn#(`TLM_PRM) all_ones = unpack('1);
AxiByteEn#(`TLM_PRM) all_zeros = unpack(0);
let tlm_byte_enable = tlm_descriptor.byte_enable;
let out = tlm_byte_enable;
if (tlm_byte_enable == all_zeros || tlm_byte_enable == all_ones)
begin
let mask = ~(all_ones << ({1'b0,tlm_descriptor.burst_size} + 1));
out = (mask << addr);
end
return out;
return tlm_descriptor.byte_enable;
endfunction


Expand Down