added basic decoding
This commit is contained in:
parent
ef58d5b07e
commit
32932f4816
7 changed files with 289 additions and 61 deletions
|
@ -1,7 +1,7 @@
|
|||
{-# LANGUAGE DataKinds #-}
|
||||
{-# LANGUAGE NumericUnderscores #-}
|
||||
|
||||
module Types(Pc, BusVal(..), Mem, FullWord, Addr) where
|
||||
module Types(Pc, BusVal(..), Mem, FullWord, Insn, Addr) where
|
||||
|
||||
import Clash.Prelude
|
||||
|
||||
|
@ -10,6 +10,7 @@ type HalfWord = Unsigned 16
|
|||
type FullWord = Unsigned 32
|
||||
type DoubleWord = Unsigned 64
|
||||
type QuadWord = Unsigned 128
|
||||
type Insn = FullWord
|
||||
|
||||
data BusVal
|
||||
= BusByte Byte
|
||||
|
|
Reference in a new issue