begun work on tag engine
This commit is contained in:
parent
550b3731b4
commit
a3afd66715
4 changed files with 18 additions and 3 deletions
|
@ -49,15 +49,15 @@ data BusResponse
|
|||
deriving (Bits, Eq, FShow)
|
||||
|
||||
interface BusMaster =
|
||||
-- The Bus arbiter will call the Bus Client's request method
|
||||
-- if and only if it's the Bus Client's turn to make a request, and the Bus Client
|
||||
-- The Bus arbiter will call the Bus Master's request method
|
||||
-- if and only if it's the Bus Master's turn to make a request, and the Bus Master
|
||||
-- has a request to make.
|
||||
-- It is up to the BusMaster to guard it's request method such that calling
|
||||
-- it's request method is only valid when the BusMaster has a request to make.
|
||||
-- This has implications about for the implementor of BusMaster, namely, that it
|
||||
-- should hold its request until it's request method gets called.
|
||||
request :: BusRequest
|
||||
-- From the client's perspective, the response should not be called until
|
||||
-- From the masters's perspective, the response should not be called until
|
||||
-- the client is ready to accept the response. In other words, response
|
||||
-- should be guarded by the client.
|
||||
response :: BusResponse -> Action
|
||||
|
|
Reference in a new issue