libriscv-0.1.0.0: A versatile, flexible and executable formal model for the RISC-V architecture.
Safe HaskellSafe-Inferred
LanguageHaskell2010

LibRISCV

Synopsis

Documentation

type Address = Word32 Source #

Representation of a 32-bit addresses for RV32.

align :: Address -> Address Source #

Align an Address on the next word boundary.

data RegIdx Source #

Type to represent an index for the register file.

>>> toEnum 12 :: RegIdx
A2
>>> toEnum 31 :: RegIdx
T6
>>> fromEnum (minBound :: RegIdx)
0

Constructors

Zero 
RA 
SP 
GP 
TP 
T0 
T1 
T2 
FP 
S1 
A0 
A1 
A2 
A3 
A4 
A5 
A6 
A7 
S2 
S3 
S4 
S5 
S6 
S7 
S8 
S9 
S10 
S11 
T3 
T4 
T5 
T6 

Instances

Instances details
Bounded RegIdx Source # 
Instance details

Defined in LibRISCV

Enum RegIdx Source # 
Instance details

Defined in LibRISCV

Ix RegIdx Source # 
Instance details

Defined in LibRISCV

Read RegIdx Source # 
Instance details

Defined in LibRISCV

Show RegIdx Source # 
Instance details

Defined in LibRISCV

Eq RegIdx Source # 
Instance details

Defined in LibRISCV

Methods

(==) :: RegIdx -> RegIdx -> Bool #

(/=) :: RegIdx -> RegIdx -> Bool #

Ord RegIdx Source # 
Instance details

Defined in LibRISCV