added needed context and getting ready to implement execute
This commit is contained in:
parent
b95b2b962a
commit
69f5cdee6a
7 changed files with 115 additions and 87 deletions
|
@ -3,4 +3,21 @@
|
|||
|
||||
module Execute(execute) where
|
||||
|
||||
execute = 1
|
||||
import Clash.Prelude
|
||||
import Decode(DecodeResult(..))
|
||||
import DecodeTypes(Opcode(..))
|
||||
|
||||
import Types(Addr, DoubleWord)
|
||||
import BusTypes(
|
||||
WriteRequest(..),
|
||||
ReadRequest(..),
|
||||
)
|
||||
import RegFiles(RegFileIdx)
|
||||
import Util((|>))
|
||||
|
||||
data ExecuteResult = ReadRequest {readRequest :: ReadRequest, insnAddr :: Addr}
|
||||
| WriteRequest {writeRequest :: WriteRequest, insnAddr :: Addr}
|
||||
| WriteBackGPR {idx :: RegFileIdx, val :: DoubleWord}
|
||||
|
||||
execute :: DecodeResult -> ExecuteResult
|
||||
execute = undefined
|
Reference in a new issue