wrench-0.0.6.3
Safe HaskellNone
LanguageHaskell2010

Wrench.Report

Synopsis

Documentation

data ReportSlice Source #

Specifies which part of the report to select.

Constructors

HeadSlice Int

Select the first n records.

AllSlice

Select all records.

TailSlice Int

Select the last n records.

LastSlice

Select only the last record.

Instances

Instances details
FromJSON ReportSlice Source # 
Instance details

Defined in Wrench.Report

Methods

parseJSON :: Value -> Parser ReportSlice

parseJSONList :: Value -> Parser [ReportSlice]

omittedField :: Maybe ReportSlice

Show ReportSlice Source # 
Instance details

Defined in Wrench.Report

data ReportConf Source #

Constructors

ReportConf 

Fields

Instances

Instances details
FromJSON ReportConf Source # 
Instance details

Defined in Wrench.Report

Methods

parseJSON :: Value -> Parser ReportConf

parseJSONList :: Value -> Parser [ReportConf]

omittedField :: Maybe ReportConf

Generic ReportConf Source # 
Instance details

Defined in Wrench.Report

Associated Types

type Rep ReportConf 
Instance details

Defined in Wrench.Report

type Rep ReportConf = D1 ('MetaData "ReportConf" "Wrench.Report" "wrench-0.0.6.3-GOHhJzRU80S94JGLGysv3F" 'False) (C1 ('MetaCons "ReportConf" 'PrefixI 'True) ((S1 ('MetaSel ('Just "rcName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "rcSlice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReportSlice)) :*: (S1 ('MetaSel ('Just "rcAssert") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "rcView") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))
Show ReportConf Source # 
Instance details

Defined in Wrench.Report

type Rep ReportConf Source # 
Instance details

Defined in Wrench.Report

type Rep ReportConf = D1 ('MetaData "ReportConf" "Wrench.Report" "wrench-0.0.6.3-GOHhJzRU80S94JGLGysv3F" 'False) (C1 ('MetaCons "ReportConf" 'PrefixI 'True) ((S1 ('MetaSel ('Just "rcName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "rcSlice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReportSlice)) :*: (S1 ('MetaSel ('Just "rcAssert") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "rcView") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))

data Report st Source #

A report with its view template compiled against the ISA's views.

compileReports :: ReportViews st => CheckEnv -> [ReportConf] -> Either Text ([Text], [Report st]) Source #

Compile every report before the simulation runs, so a mistake fails the same way in every ISA, naming the report and the key, and rendering never meets a key it cannot resolve.

prepareReport :: ReportViews st => TranslatorResult mem (WordOf st) -> Bool -> st -> [Trace st (IsaOf st)] -> Report st -> (Bool, Text) Source #

renderIsaView :: Inspectable st => HashMap Text (WordOf st) -> st -> Text -> Either Text Text Source #

Render one of the ISA's own views of a state.

sharedViews :: ReportViews st => [View (ReportEnv st)] Source #

The views every ISA has.

isaViews :: Inspectable st => [View (StateEnv st)] Source #

The ISA's own views, its stats among them.

type ReportViews st = (ByteSize (IsaOf st), Inspectable st, IsWord (WordOf st), Memory (MemOf st) (IsaOf st) (WordOf st), Show (IsaOf st)) Source #

valueView :: (Integral a, Show a) => Text -> Text -> (env -> a) -> View env Source #

A register-like value: dec by default, or hex.

flagView :: Text -> Text -> (env -> Text) -> View env Source #

A view without arguments or format.

showValue :: (Integral a, Show a) => Format -> a -> Text Source #

showValues :: (Integral a, Show a) => Format -> [a] -> Text Source #

Values joined top first, a:b:c, as stacks are shown.