forked from Github_Repos/cvw
Simplification to EBU.
This commit is contained in:
parent
146ff6ff6a
commit
f9c4b32bd5
@ -40,7 +40,7 @@ module controllerinputstage
|
||||
(input logic HCLK,
|
||||
input logic HRESETn,
|
||||
input logic Save, Restore, Disable,
|
||||
output logic Request, Active,
|
||||
output logic Request,
|
||||
// controller input
|
||||
input logic HWRITEin,
|
||||
input logic [2:0] HSIZEin,
|
||||
@ -73,7 +73,6 @@ module controllerinputstage
|
||||
|
||||
assign Request = HTRANSOut != 2'b00;
|
||||
assign HREADYOut = HREADYin & ~Disable;
|
||||
assign Active = Request & HREADYOut;
|
||||
|
||||
endmodule
|
||||
|
||||
|
@ -109,7 +109,7 @@ module ebu
|
||||
|
||||
// input stage IFU
|
||||
controllerinputstage IFUInput(.HCLK, .HRESETn, .Save(save[0]), .Restore(restore[0]), .Disable(dis[0]),
|
||||
.Request(IFUReq), .Active(IFUActive),
|
||||
.Request(IFUReq),
|
||||
.HWRITEin(1'b0), .HSIZEin(IFUHSIZE), .HBURSTin(IFUHBURST), .HTRANSin(IFUHTRANS), .HADDRin(IFUHADDR),
|
||||
.HWRITEOut(IFUHWRITEOut), .HSIZEOut(IFUHSIZEOut), .HBURSTOut(IFUHBURSTOut), .HREADYOut(IFUHREADY),
|
||||
.HTRANSOut(IFUHTRANSOut), .HADDROut(IFUHADDROut), .HREADYin(HREADY));
|
||||
@ -117,7 +117,7 @@ module ebu
|
||||
// input stage LSU
|
||||
// LSU always has priority so there should never be a need to save and restore the address phase inputs.
|
||||
controllerinputstage LSUInput(.HCLK, .HRESETn, .Save(save[1]), .Restore(restore[1]), .Disable(dis[1]),
|
||||
.Request(LSUReq), .Active(LSUActive),
|
||||
.Request(LSUReq),
|
||||
.HWRITEin(LSUHWRITE), .HSIZEin(LSUHSIZE), .HBURSTin(LSUHBURST), .HTRANSin(LSUHTRANS), .HADDRin(LSUHADDR), .HREADYOut(LSUHREADY),
|
||||
.HWRITEOut(LSUHWRITEOut), .HSIZEOut(LSUHSIZEOut), .HBURSTOut(LSUHBURSTOut),
|
||||
.HTRANSOut(LSUHTRANSOut), .HADDROut(LSUHADDROut), .HREADYin(HREADY));
|
||||
@ -138,7 +138,7 @@ module ebu
|
||||
|
||||
// FSM decides if arbitration needed. Arbitration is held until the last beat of
|
||||
// a burst is completed.
|
||||
assign both = LSUActive & IFUActive;
|
||||
assign both = LSUReq & IFUReq;
|
||||
flopenl #(.TYPE(statetype)) busreg(HCLK, ~HRESETn, 1'b1, NextState, IDLE, CurrState);
|
||||
always_comb
|
||||
case (CurrState)
|
||||
|
Loading…
Reference in New Issue
Block a user