read seemingly complete

This commit is contained in:
Yehowshua Immanuel 2025-03-10 17:46:06 -04:00
parent ad751a5039
commit b95b2b962a
4 changed files with 82 additions and 39 deletions

View file

@ -28,8 +28,11 @@ import Util((|>))
import Types(DoubleWord)
type RegFileIdx = Unsigned 5
data RegVal = Value RegFileIdx DoubleWord
| Unpopulated RegFileIdx
data RegVal = Value {
regFileIdx :: RegFileIdx,
regVal :: DoubleWord
}
| Unpopulated {regFileIdx :: RegFileIdx}
deriving (Generic, Show, Eq, NFDataX)
type GPR = Vec 32 (Unsigned 64) -- General Purpose Registers