Safe Haskell | None |
---|---|
Language | Haskell2010 |
Verismith.Config
Synopsis
- data Config = Config {}
- defaultConfig :: Config
- data Probability = Probability {
- _probModItem :: !ProbModItem
- _probStmnt :: !ProbStatement
- _probExpr :: !ProbExpr
- _probMod :: !ProbMod
- data ProbExpr = ProbExpr {
- _probExprNum :: !Int
- _probExprId :: !Int
- _probExprRangeSelect :: !Int
- _probExprUnOp :: !Int
- _probExprBinOp :: !Int
- _probExprCond :: !Int
- _probExprConcat :: !Int
- _probExprStr :: !Int
- _probExprSigned :: !Int
- _probExprUnsigned :: !Int
- data ProbModItem = ProbModItem {}
- data ProbStatement = ProbStatement {
- _probStmntBlock :: !Int
- _probStmntNonBlock :: !Int
- _probStmntCond :: !Int
- _probStmntFor :: !Int
- data ProbMod = ProbMod {}
- data ConfEMI = ConfEMI {}
- data ConfProperty = ConfProperty {
- _propSize :: !Int
- _propSeed :: !(Maybe Seed)
- _propStmntDepth :: !Int
- _propModDepth :: !Int
- _propMaxModules :: !Int
- _propSampleMethod :: !Text
- _propSampleSize :: !Int
- _propCombine :: !Bool
- _propNonDeterminism :: !Int
- _propDeterminism :: !Int
- _propDefaultYosys :: !(Maybe Text)
- data NumberProbability
- = NPUniform { }
- | NPBinomial {
- _NPBOffset :: !Int
- _NPBTrials :: !Int
- _NPBSuccess :: !Double
- | NPNegativeBinomial {
- _NPNBOffset :: !Int
- _NPNBFailRate :: !Double
- _NPNBFailure :: !Int
- | NPPoisson {
- _NPPOffset :: !Int
- _NPPParam :: !Double
- | NPDiscrete !(NonEmpty (Double, Int))
- | NPLinearComb !(NonEmpty (Double, NumberProbability))
- data CategoricalProbability
- = CPDiscrete !(NonEmpty Double)
- | CPBiasedUniform {
- _CPBUBiases :: ![(Double, Int)]
- _CPBUUniformWeight :: Double
- uniformCP :: CategoricalProbability
- data GarbageOpts = GarbageOpts {
- _goSeed :: !(Maybe (Vector Word32))
- _goConfig :: !GarbageConfigOpts
- _goPrimitive :: !GarbagePrimitiveOpts
- _goModule :: !GarbageModuleOpts
- _goSpecify :: !GarbageSpecifyOpts
- _goGenerate :: !GarbageGenerateOpts
- _goType :: !GarbageTypeOpts
- _goStatement :: !GarbageStatementOpts
- _goExpr :: !GarbageExprOpts
- _goIdentifier :: !GarbageIdentifierOpts
- _goDriveStrength :: !CategoricalProbability
- _goLValues :: !NumberProbability
- _goOptionalLValue :: !Double
- _goAttributes :: !NumberProbability
- _goAttributeOptionalValue :: !Double
- _goDelay :: !CategoricalProbability
- _goIntRealIdent :: !CategoricalProbability
- _goPathDepth :: !NumberProbability
- _goBareMinTypMax :: !Double
- data GarbageConfigOpts = GarbageConfigOpts {}
- data GarbagePrimitiveOpts = GarbagePrimitiveOpts {
- _gpoBlocks :: !NumberProbability
- _gpoPorts :: !NumberProbability
- _gpoPortType :: !CategoricalProbability
- _gpoSeq_Comb :: !Double
- _gpoRegInit :: !Double
- _gpoCombInit :: !CategoricalProbability
- _gpoTableRows :: !NumberProbability
- _gpoInLevel :: !CategoricalProbability
- _gpoOutLevel :: !CategoricalProbability
- _gpoEdgeSensitive :: !Double
- _gpoEdgeSimplePosNeg :: !CategoricalProbability
- _gpoOutputNoChange :: !Double
- data GarbageModuleOpts = GarbageModuleOpts {
- _gmoBlocks :: !NumberProbability
- _gmoNamed_Positional :: !Double
- _gmoParameters :: !NumberProbability
- _gmoOptionalParameter :: !Double
- _gmoPorts :: !NumberProbability
- _gmoPortLValues :: !NumberProbability
- _gmoPortRange :: !Double
- _gmoPortDir :: !CategoricalProbability
- _gmoOptionalPort :: !Double
- _gmoItems :: !NumberProbability
- _gmoItem :: !CategoricalProbability
- _gmoTimeScale :: !Double
- _gmoTimeMagnitude :: !CategoricalProbability
- _gmoCell :: !Double
- _gmoUnconnectedDrive :: !CategoricalProbability
- _gmoDefaultNetType :: !CategoricalProbability
- _gmoNonAsciiHeader :: !Bool
- data GarbageSpecifyOpts = GarbageSpecifyOpts {}
- data GarbageSpecifyPathOpts = GarbageSpecifyPathOpts {
- _gspoCondition :: !CategoricalProbability
- _gspoFull_Parallel :: !Double
- _gspoEdgeSensitive :: !Double
- _gspoFullSources :: !NumberProbability
- _gspoFullDestinations :: !NumberProbability
- _gspoPolarity :: !CategoricalProbability
- _gspoEdgeSensitivity :: !CategoricalProbability
- _gspoDelayKind :: !CategoricalProbability
- data GarbageSpecifyTimingCheckOpts = GarbageSpecifyTimingCheckOpts {}
- data GarbageGenerateOpts = GarbageGenerateOpts {
- _ggoAttenuation :: !GarbageAttenuationOpts
- _ggoItems :: !NumberProbability
- _ggoItem :: !CategoricalProbability
- _ggoOptionalBlock :: !Double
- _ggoInstOptionalDelay :: !Double
- _ggoInstOptionalRange :: !Double
- _ggoPrimitiveOptIdent :: !Double
- _ggoCondBlock :: !CategoricalProbability
- _ggoNetType :: !CategoricalProbability
- _ggoNetRange :: !Double
- _ggoNetVectoring :: !CategoricalProbability
- _ggoDeclItem :: !CategoricalProbability
- _ggoDeclDim_Init :: !Double
- _ggoChargeStrength :: !CategoricalProbability
- _ggoTaskFunAutomatic :: !Double
- _ggoTaskFunDecl :: !CategoricalProbability
- _ggoTaskFunRegister :: !Double
- _ggoTaskFunPorts :: !NumberProbability
- _ggoTaskFunPortType :: !CategoricalProbability
- _ggoTaskPortDirection :: !CategoricalProbability
- _ggoFunRetType :: !Double
- _ggoGateInst :: !CategoricalProbability
- _ggoGateOptIdent :: !Double
- _ggoGateNInputType :: !CategoricalProbability
- _ggoGateInputs :: !NumberProbability
- _ggoGateOutputs :: !NumberProbability
- _ggoCaseBranches :: !NumberProbability
- _ggoCaseBranchPatterns :: !NumberProbability
- data GarbageTypeOpts = GarbageTypeOpts {}
- data GarbageAttenuationOpts = GarbageAttenuationOpts {
- _gaoCurrent :: !Double
- _gaoDecrease :: !Double
- data GarbageStatementOpts = GarbageStatementOpts {
- _gstoAttenuation :: !GarbageAttenuationOpts
- _gstoOptional :: !Double
- _gstoItem :: !CategoricalProbability
- _gstoItems :: !NumberProbability
- _gstoOptionalDelEvCtl :: !Double
- _gstoAssignmentBlocking :: !Double
- _gstoCase :: !CategoricalProbability
- _gstoCaseBranches :: !NumberProbability
- _gstoCaseBranchPatterns :: !NumberProbability
- _gstoLoop :: !CategoricalProbability
- _gstoBlockPar_Seq :: !Double
- _gstoBlockHeader :: !Double
- _gstoBlockDecls :: !NumberProbability
- _gstoBlockDecl :: !CategoricalProbability
- _gstoProcContAssign :: !CategoricalProbability
- _gstoPCAVar_Net :: !Double
- _gstoDelayEventRepeat :: !CategoricalProbability
- _gstoEvent :: !CategoricalProbability
- _gstoEvents :: !NumberProbability
- _gstoEventPrefix :: !CategoricalProbability
- _gstoSysTaskPorts :: !NumberProbability
- _gstoSysTaskOptionalPort :: !Double
- data GarbageExprOpts = GarbageExprOpts {
- _geoAttenuation :: !GarbageAttenuationOpts
- _geoItem :: !CategoricalProbability
- _geoPrimary :: !CategoricalProbability
- _geoUnary :: !CategoricalProbability
- _geoBinary :: !CategoricalProbability
- _geoMinTypMax :: !Double
- _geoDimRange :: !Double
- _geoRange :: !CategoricalProbability
- _geoRangeOffsetPos_Neg :: !Double
- _geoConcatenations :: !NumberProbability
- _geoSysFunArgs :: !NumberProbability
- _geoLiteralWidth :: !CategoricalProbability
- _geoLiteralSigned :: !Double
- _geoStringCharacters :: !NumberProbability
- _geoStringCharacter :: !CategoricalProbability
- _geoFixed_Floating :: !Double
- _geoExponentSign :: !CategoricalProbability
- _geoX_Z :: !Double
- _geoBinarySymbols :: !NumberProbability
- _geoBinarySymbol :: !CategoricalProbability
- _geoOctalSymbols :: !NumberProbability
- _geoOctalSymbol :: !CategoricalProbability
- _geoDecimalSymbols :: !NumberProbability
- _geoDecimalSymbol :: !CategoricalProbability
- _geoHexadecimalSymbols :: !NumberProbability
- _geoHexadecimalSymbol :: !CategoricalProbability
- data GarbageIdentifierOpts = GarbageIdentifierOpts {}
- defGarbageOpts :: GarbageOpts
- data SimDescription = SimDescription {}
- data SynthDescription = SynthDescription {}
- fromXST :: XST -> SynthDescription
- fromYosys :: Yosys -> SynthDescription
- fromVivado :: Vivado -> SynthDescription
- fromQuartus :: Quartus -> SynthDescription
- fromQuartusLight :: QuartusLight -> SynthDescription
- configEMI :: Lens' Config ConfEMI
- configProbability :: Lens' Config Probability
- configGarbageGenerator :: Lens' Config GarbageOpts
- configProperty :: Lens' Config ConfProperty
- configSimulators :: Lens' Config [SimDescription]
- configSynthesisers :: Lens' Config [SynthDescription]
- confEMIGenerateProb :: Lens' ConfEMI Int
- confEMINoGenerateProb :: Lens' ConfEMI Int
- probModItem :: Lens' Probability ProbModItem
- probMod :: Lens' Probability ProbMod
- probModDropOutput :: Lens' ProbMod Int
- probModKeepOutput :: Lens' ProbMod Int
- probStmnt :: Lens' Probability ProbStatement
- probExpr :: Lens' Probability ProbExpr
- probExprNum :: Lens' ProbExpr Int
- probExprId :: Lens' ProbExpr Int
- probExprRangeSelect :: Lens' ProbExpr Int
- probExprUnOp :: Lens' ProbExpr Int
- probExprBinOp :: Lens' ProbExpr Int
- probExprCond :: Lens' ProbExpr Int
- probExprConcat :: Lens' ProbExpr Int
- probExprStr :: Lens' ProbExpr Int
- probExprSigned :: Lens' ProbExpr Int
- probExprUnsigned :: Lens' ProbExpr Int
- probModItemAssign :: Lens' ProbModItem Int
- probModItemSeqAlways :: Lens' ProbModItem Int
- probModItemCombAlways :: Lens' ProbModItem Int
- probModItemInst :: Lens' ProbModItem Int
- probStmntBlock :: Lens' ProbStatement Int
- probStmntNonBlock :: Lens' ProbStatement Int
- probStmntCond :: Lens' ProbStatement Int
- probStmntFor :: Lens' ProbStatement Int
- propSampleSize :: Lens' ConfProperty Int
- propSampleMethod :: Lens' ConfProperty Text
- propSize :: Lens' ConfProperty Int
- propSeed :: Lens' ConfProperty (Maybe Seed)
- propStmntDepth :: Lens' ConfProperty Int
- propModDepth :: Lens' ConfProperty Int
- propMaxModules :: Lens' ConfProperty Int
- propCombine :: Lens' ConfProperty Bool
- propDeterminism :: Lens' ConfProperty Int
- propNonDeterminism :: Lens' ConfProperty Int
- propDefaultYosys :: Lens' ConfProperty (Maybe Text)
- goSeed :: Lens' GarbageOpts (Maybe (Vector Word32))
- gaoCurrent :: Lens' GarbageAttenuationOpts Double
- goGenerate :: Lens' GarbageOpts GarbageGenerateOpts
- goStatement :: Lens' GarbageOpts GarbageStatementOpts
- goExpr :: Lens' GarbageOpts GarbageExprOpts
- ggoAttenuation :: Lens' GarbageGenerateOpts GarbageAttenuationOpts
- geoAttenuation :: Lens' GarbageExprOpts GarbageAttenuationOpts
- gstoAttenuation :: Lens' GarbageStatementOpts GarbageAttenuationOpts
- parseConfigFile :: FilePath -> IO (Either Text Config)
- parseConfig :: Text -> Either Text Config
- parseConfigFileRelaxed :: FilePath -> IO (Either Text Config)
- parseConfigRelaxed :: Text -> Either Text Config
- encodeConfig :: Config -> Text
- encodeConfigFile :: FilePath -> Config -> IO ()
- versionInfo :: String
TOML Configuration
Verismith supports a TOML configuration file that can be passed using the -c
flag or using the parseConfig
and encodeConfig
functions. The
configuration can then be manipulated using the lenses that are also provided
in this module.
The configuration file can be used to tweak the random Verilog generation by
passing different probabilities to each of the syntax nodes in the AST. It
can also be used to specify which simulators to fuzz with which options. A
seed for the run can also be set, to replay a previous run using the same
exact generation. A default value is associated with each key in the
configuration file, which means that only the options that need overriding
can be added to the configuration. The defaults can be observed in
defaultConfig
or when running verismith config
.
Configuration Sections
There are four main configuration sections in the TOML file:
probability
- The
probability
section defines the probabilities at every node in the AST. property
- Controls different properties of the generation, such as adding a seed or the depth of the statements.
simulator
- This is an array of tables containing descriptions of the different simulators that should be used. It currently only supports Icarus Verilog.
synthesiser
- This is also an array of tables containing descriptions of the different synthesisers that should be used. The synthesisers that are currently supported are:
Constructors
Config | |
Fields
|
Probabilities
data Probability Source #
[probability]
: combined probabilities.
Constructors
Probability | |
Fields
|
Instances
Show Probability Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> Probability -> ShowS # show :: Probability -> String # showList :: [Probability] -> ShowS # | |
Eq Probability Source # | |
Defined in Verismith.Config |
Expression
Probability of different expressions nodes.
Constructors
ProbExpr | |
Fields
|
Instances
Module Item
data ProbModItem Source #
Probability of generating different nodes inside a module declaration.
Constructors
ProbModItem | |
Fields
|
Instances
Show ProbModItem Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> ProbModItem -> ShowS # show :: ProbModItem -> String # showList :: [ProbModItem] -> ShowS # | |
Eq ProbModItem Source # | |
Defined in Verismith.Config |
Statement
data ProbStatement Source #
Probability of generating different statements.
Constructors
ProbStatement | |
Fields
|
Instances
Show ProbStatement Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> ProbStatement -> ShowS # show :: ProbStatement -> String # showList :: [ProbStatement] -> ShowS # | |
Eq ProbStatement Source # | |
Defined in Verismith.Config Methods (==) :: ProbStatement -> ProbStatement -> Bool # (/=) :: ProbStatement -> ProbStatement -> Bool # |
Module
Probability of generating various properties of a module.
Constructors
ProbMod | |
Fields
|
EMI Configuration
Constructors
ConfEMI | |
Fields
|
ConfProperty
data ConfProperty Source #
[property]
: properties for the generated Verilog file.
Constructors
ConfProperty | |
Fields
|
Instances
Show ConfProperty Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> ConfProperty -> ShowS # show :: ConfProperty -> String # showList :: [ConfProperty] -> ShowS # | |
Eq ConfProperty Source # | |
Defined in Verismith.Config |
ConfGarbage
data NumberProbability Source #
Constructors
NPUniform | |
NPBinomial | |
Fields
| |
NPNegativeBinomial | |
Fields
| |
NPPoisson | |
Fields
| |
NPDiscrete !(NonEmpty (Double, Int)) | |
NPLinearComb !(NonEmpty (Double, NumberProbability)) |
Instances
Show NumberProbability Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> NumberProbability -> ShowS # show :: NumberProbability -> String # showList :: [NumberProbability] -> ShowS # | |
Eq NumberProbability Source # | |
Defined in Verismith.Config Methods (==) :: NumberProbability -> NumberProbability -> Bool # (/=) :: NumberProbability -> NumberProbability -> Bool # |
data CategoricalProbability Source #
Constructors
CPDiscrete !(NonEmpty Double) | |
CPBiasedUniform | |
Fields
|
Instances
Show CategoricalProbability Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> CategoricalProbability -> ShowS # show :: CategoricalProbability -> String # showList :: [CategoricalProbability] -> ShowS # | |
Eq CategoricalProbability Source # | |
Defined in Verismith.Config Methods (==) :: CategoricalProbability -> CategoricalProbability -> Bool # (/=) :: CategoricalProbability -> CategoricalProbability -> Bool # |
data GarbageOpts Source #
Constructors
Instances
Show GarbageOpts Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> GarbageOpts -> ShowS # show :: GarbageOpts -> String # showList :: [GarbageOpts] -> ShowS # | |
Eq GarbageOpts Source # | |
Defined in Verismith.Config |
data GarbageConfigOpts Source #
Constructors
GarbageConfigOpts | |
Fields |
Instances
Show GarbageConfigOpts Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> GarbageConfigOpts -> ShowS # show :: GarbageConfigOpts -> String # showList :: [GarbageConfigOpts] -> ShowS # | |
Eq GarbageConfigOpts Source # | |
Defined in Verismith.Config Methods (==) :: GarbageConfigOpts -> GarbageConfigOpts -> Bool # (/=) :: GarbageConfigOpts -> GarbageConfigOpts -> Bool # |
data GarbagePrimitiveOpts Source #
Constructors
Instances
Show GarbagePrimitiveOpts Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> GarbagePrimitiveOpts -> ShowS # show :: GarbagePrimitiveOpts -> String # showList :: [GarbagePrimitiveOpts] -> ShowS # | |
Eq GarbagePrimitiveOpts Source # | |
Defined in Verismith.Config Methods (==) :: GarbagePrimitiveOpts -> GarbagePrimitiveOpts -> Bool # (/=) :: GarbagePrimitiveOpts -> GarbagePrimitiveOpts -> Bool # |
data GarbageModuleOpts Source #
Constructors
Instances
Show GarbageModuleOpts Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> GarbageModuleOpts -> ShowS # show :: GarbageModuleOpts -> String # showList :: [GarbageModuleOpts] -> ShowS # | |
Eq GarbageModuleOpts Source # | |
Defined in Verismith.Config Methods (==) :: GarbageModuleOpts -> GarbageModuleOpts -> Bool # (/=) :: GarbageModuleOpts -> GarbageModuleOpts -> Bool # |
data GarbageSpecifyOpts Source #
Constructors
GarbageSpecifyOpts | |
Instances
Show GarbageSpecifyOpts Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> GarbageSpecifyOpts -> ShowS # show :: GarbageSpecifyOpts -> String # showList :: [GarbageSpecifyOpts] -> ShowS # | |
Eq GarbageSpecifyOpts Source # | |
Defined in Verismith.Config Methods (==) :: GarbageSpecifyOpts -> GarbageSpecifyOpts -> Bool # (/=) :: GarbageSpecifyOpts -> GarbageSpecifyOpts -> Bool # |
data GarbageSpecifyPathOpts Source #
Constructors
Instances
Show GarbageSpecifyPathOpts Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> GarbageSpecifyPathOpts -> ShowS # show :: GarbageSpecifyPathOpts -> String # showList :: [GarbageSpecifyPathOpts] -> ShowS # | |
Eq GarbageSpecifyPathOpts Source # | |
Defined in Verismith.Config Methods (==) :: GarbageSpecifyPathOpts -> GarbageSpecifyPathOpts -> Bool # (/=) :: GarbageSpecifyPathOpts -> GarbageSpecifyPathOpts -> Bool # |
data GarbageSpecifyTimingCheckOpts Source #
Constructors
GarbageSpecifyTimingCheckOpts | |
Fields
|
Instances
Show GarbageSpecifyTimingCheckOpts Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> GarbageSpecifyTimingCheckOpts -> ShowS # show :: GarbageSpecifyTimingCheckOpts -> String # showList :: [GarbageSpecifyTimingCheckOpts] -> ShowS # | |
Eq GarbageSpecifyTimingCheckOpts Source # | |
Defined in Verismith.Config |
data GarbageGenerateOpts Source #
Constructors
Instances
Show GarbageGenerateOpts Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> GarbageGenerateOpts -> ShowS # show :: GarbageGenerateOpts -> String # showList :: [GarbageGenerateOpts] -> ShowS # | |
Eq GarbageGenerateOpts Source # | |
Defined in Verismith.Config Methods (==) :: GarbageGenerateOpts -> GarbageGenerateOpts -> Bool # (/=) :: GarbageGenerateOpts -> GarbageGenerateOpts -> Bool # |
data GarbageTypeOpts Source #
Constructors
GarbageTypeOpts | |
Instances
Show GarbageTypeOpts Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> GarbageTypeOpts -> ShowS # show :: GarbageTypeOpts -> String # showList :: [GarbageTypeOpts] -> ShowS # | |
Eq GarbageTypeOpts Source # | |
Defined in Verismith.Config Methods (==) :: GarbageTypeOpts -> GarbageTypeOpts -> Bool # (/=) :: GarbageTypeOpts -> GarbageTypeOpts -> Bool # |
data GarbageAttenuationOpts Source #
Constructors
GarbageAttenuationOpts | |
Fields
|
Instances
Show GarbageAttenuationOpts Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> GarbageAttenuationOpts -> ShowS # show :: GarbageAttenuationOpts -> String # showList :: [GarbageAttenuationOpts] -> ShowS # | |
Eq GarbageAttenuationOpts Source # | |
Defined in Verismith.Config Methods (==) :: GarbageAttenuationOpts -> GarbageAttenuationOpts -> Bool # (/=) :: GarbageAttenuationOpts -> GarbageAttenuationOpts -> Bool # |
data GarbageStatementOpts Source #
Constructors
Instances
Show GarbageStatementOpts Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> GarbageStatementOpts -> ShowS # show :: GarbageStatementOpts -> String # showList :: [GarbageStatementOpts] -> ShowS # | |
Eq GarbageStatementOpts Source # | |
Defined in Verismith.Config Methods (==) :: GarbageStatementOpts -> GarbageStatementOpts -> Bool # (/=) :: GarbageStatementOpts -> GarbageStatementOpts -> Bool # |
data GarbageExprOpts Source #
Constructors
Instances
Show GarbageExprOpts Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> GarbageExprOpts -> ShowS # show :: GarbageExprOpts -> String # showList :: [GarbageExprOpts] -> ShowS # | |
Eq GarbageExprOpts Source # | |
Defined in Verismith.Config Methods (==) :: GarbageExprOpts -> GarbageExprOpts -> Bool # (/=) :: GarbageExprOpts -> GarbageExprOpts -> Bool # |
data GarbageIdentifierOpts Source #
Constructors
GarbageIdentifierOpts | |
Instances
Show GarbageIdentifierOpts Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> GarbageIdentifierOpts -> ShowS # show :: GarbageIdentifierOpts -> String # showList :: [GarbageIdentifierOpts] -> ShowS # | |
Eq GarbageIdentifierOpts Source # | |
Defined in Verismith.Config Methods (==) :: GarbageIdentifierOpts -> GarbageIdentifierOpts -> Bool # (/=) :: GarbageIdentifierOpts -> GarbageIdentifierOpts -> Bool # |
Simulator Description
data SimDescription Source #
Description of the simulator
Constructors
SimDescription | |
Instances
Show SimDescription Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> SimDescription -> ShowS # show :: SimDescription -> String # showList :: [SimDescription] -> ShowS # | |
Eq SimDescription Source # | |
Defined in Verismith.Config Methods (==) :: SimDescription -> SimDescription -> Bool # (/=) :: SimDescription -> SimDescription -> Bool # |
Synthesiser Description
data SynthDescription Source #
[[synthesiser]]
: description of the synthesis tool. There can be multiple of these sections in a config
file.
Constructors
SynthDescription | |
Fields
|
Instances
Show SynthDescription Source # | |
Defined in Verismith.Config Methods showsPrec :: Int -> SynthDescription -> ShowS # show :: SynthDescription -> String # showList :: [SynthDescription] -> ShowS # | |
Eq SynthDescription Source # | |
Defined in Verismith.Config Methods (==) :: SynthDescription -> SynthDescription -> Bool # (/=) :: SynthDescription -> SynthDescription -> Bool # |
Useful Lenses
fromXST :: XST -> SynthDescription Source #
fromYosys :: Yosys -> SynthDescription Source #
fromVivado :: Vivado -> SynthDescription Source #
encodeConfig :: Config -> Text Source #
versionInfo :: String Source #