added needed context and getting ready to implement execute

This commit is contained in:
Yehowshua Immanuel 2025-03-10 22:26:38 -04:00
parent b95b2b962a
commit 69f5cdee6a
7 changed files with 115 additions and 87 deletions

View file

@ -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