stopping point before re-factoring decoder types

This commit is contained in:
Yehowshua Immanuel 2025-03-07 18:41:55 -05:00
parent 6b81cd28ee
commit 73d5e1204c

View file

@ -1,6 +1,25 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NumericUnderscores #-}
module Read(read) where
module Read(Read.read) where
import Clash.Prelude
import Types(DoubleWord, Addr)
data RegVal = Value DoubleWord
| Borrowed
deriving (Generic, Show, Eq, NFDataX)
data SRC = GPR RegVal
| FPR RegVal
| CSR RegVal
| PC Addr
deriving (Generic, Show, Eq, NFDataX)
data ReadResult = ReadResult
{ src1 :: SRC,
src2 :: SRC,
src3 :: SRC
}
deriving (Generic, Show, Eq, NFDataX)
read = 2