verismith-1.1.0: Random verilog generation and simulator testing.
Safe HaskellNone
LanguageHaskell2010

Verismith.Verilog2005

Synopsis

Documentation

parseVerilog2005 :: FilePath -> IO (Verilog2005, [String]) Source #

Parse a file containing Verilog 2005 code, also return non Verilog2005 conformity warnings The lists in the Verilog2005 structure are in reverse order from source

genSource :: Maybe Word -> PrintingOpts -> Verilog2005 -> ByteString Source #

Generates a string from a line length limit and a Verilog AST

data Verilog2005 Source #

Internal representation of Verilog2005 AST

Instances

Instances details
Data Verilog2005 Source # 
Instance details

Defined in Verismith.Verilog2005.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Verilog2005 -> c Verilog2005 #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Verilog2005 #

toConstr :: Verilog2005 -> Constr #

dataTypeOf :: Verilog2005 -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Verilog2005) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Verilog2005) #

gmapT :: (forall b. Data b => b -> b) -> Verilog2005 -> Verilog2005 #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Verilog2005 -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Verilog2005 -> r #

gmapQ :: (forall d. Data d => d -> u) -> Verilog2005 -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Verilog2005 -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Verilog2005 -> m Verilog2005 #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Verilog2005 -> m Verilog2005 #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Verilog2005 -> m Verilog2005 #

Monoid Verilog2005 Source # 
Instance details

Defined in Verismith.Verilog2005.AST

Semigroup Verilog2005 Source # 
Instance details

Defined in Verismith.Verilog2005.AST

Generic Verilog2005 Source # 
Instance details

Defined in Verismith.Verilog2005.AST

Associated Types

type Rep Verilog2005 
Instance details

Defined in Verismith.Verilog2005.AST

type Rep Verilog2005 = D1 ('MetaData "Verilog2005" "Verismith.Verilog2005.AST" "verismith-1.1.0-FUTsgQc3KWmLTdTSx0Se1T" 'False) (C1 ('MetaCons "Verilog2005" 'PrefixI 'True) (S1 ('MetaSel ('Just "_vModule") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [ModuleBlock]) :*: (S1 ('MetaSel ('Just "_vPrimitive") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [PrimitiveBlock]) :*: S1 ('MetaSel ('Just "_vConfig") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [ConfigBlock]))))
Show Verilog2005 Source # 
Instance details

Defined in Verismith.Verilog2005.AST

Eq Verilog2005 Source # 
Instance details

Defined in Verismith.Verilog2005.AST

type Rep Verilog2005 Source # 
Instance details

Defined in Verismith.Verilog2005.AST

type Rep Verilog2005 = D1 ('MetaData "Verilog2005" "Verismith.Verilog2005.AST" "verismith-1.1.0-FUTsgQc3KWmLTdTSx0Se1T" 'False) (C1 ('MetaCons "Verilog2005" 'PrefixI 'True) (S1 ('MetaSel ('Just "_vModule") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [ModuleBlock]) :*: (S1 ('MetaSel ('Just "_vPrimitive") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [PrimitiveBlock]) :*: S1 ('MetaSel ('Just "_vConfig") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [ConfigBlock]))))

data PrintingOpts Source #

Pretty-printer options