vram: adjust the MemoryArbiterClient interface a little
This commit is contained in:
parent
81e5264d22
commit
69b7ce7f9e
|
@ -19,14 +19,14 @@ endinterface
|
|||
// A MemArbiterClient emits requests for memory access and emits
|
||||
// grants.
|
||||
interface MemArbiterClient#(type request);
|
||||
method request request();
|
||||
method Maybe#(request) request();
|
||||
method Action grant();
|
||||
endinterface
|
||||
|
||||
instance Connectable#(MemArbiterClient#(req), MemArbiterServer#(req));
|
||||
module mkConnection(MemArbiterClient#(req) client, MemArbiterServer#(req) server, Empty ifc);
|
||||
rule send_request;
|
||||
server.request(client.request());
|
||||
rule send_request (client.request matches tagged Valid .req);
|
||||
server.request(req);
|
||||
endrule
|
||||
|
||||
rule send_grant (server.grant());
|
||||
|
|
Loading…
Reference in New Issue