mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Minor name cleanups
This commit is contained in:
parent
1206b388c7
commit
db5c941d6f
@ -73,9 +73,7 @@ module busdp #(parameter WORDSPERLINE, LINELEN, LOGWPL, CACHE_ENABLED)
|
|||||||
logic [LOGWPL-1:0] WordCountDelayed;
|
logic [LOGWPL-1:0] WordCountDelayed;
|
||||||
logic BufferCaptureEn;
|
logic BufferCaptureEn;
|
||||||
|
|
||||||
// *** implement flops as an array if feasbile; DLSUBusBuffer might be a problem
|
genvar index;
|
||||||
// *** better name than DLSUBusBuffer
|
|
||||||
genvar index;
|
|
||||||
for (index = 0; index < WORDSPERLINE; index++) begin:fetchbuffer
|
for (index = 0; index < WORDSPERLINE; index++) begin:fetchbuffer
|
||||||
logic [WORDSPERLINE-1:0] CaptureWord;
|
logic [WORDSPERLINE-1:0] CaptureWord;
|
||||||
assign CaptureWord[index] = BufferCaptureEn & (index == WordCountDelayed);
|
assign CaptureWord[index] = BufferCaptureEn & (index == WordCountDelayed);
|
||||||
|
@ -153,8 +153,7 @@ module busfsm #(parameter integer WordCountThreshold,
|
|||||||
endcase
|
endcase
|
||||||
end
|
end
|
||||||
|
|
||||||
// Would these be better as always_comb statements or muxes?
|
assign LSUBurstType = (UnCachedRW) ? 3'b0 : LocalBurstType; // Don't want to use burst when doing an Uncached Access.
|
||||||
assign LSUBurstType = (UnCachedRW) ? 3'b0 : LocalBurstType; // Don't want to use burst when doing an Uncached Access.
|
|
||||||
assign LSUTransComplete = (UnCachedRW) ? LSUBusAck : WordCountFlag & LSUBusAck;
|
assign LSUTransComplete = (UnCachedRW) ? LSUBusAck : WordCountFlag & LSUBusAck;
|
||||||
// Use SEQ if not doing first word, NONSEQ if doing the first read/write, and IDLE if finishing up.
|
// Use SEQ if not doing first word, NONSEQ if doing the first read/write, and IDLE if finishing up.
|
||||||
assign LSUTransType = (|WordCount) & ~UnCachedRW ? AHB_SEQ : (LSUBusRead | LSUBusWrite) & (~LSUTransComplete) ? AHB_NONSEQ : AHB_IDLE;
|
assign LSUTransType = (|WordCount) & ~UnCachedRW ? AHB_SEQ : (LSUBusRead | LSUBusWrite) & (~LSUTransComplete) ? AHB_NONSEQ : AHB_IDLE;
|
||||||
|
Loading…
Reference in New Issue
Block a user