Commit f5881919 by Rupert Swarbrick Committed by Zachary Snow

Allow exclusion of Assert conversion

Yosys does support some asserts nowadays. Allowing sv2v to not strip
them out means that you can check formal properties without needing
hierarchical references (which Yosys really doesn't cope well with!)
parent dd9f040f
...@@ -55,7 +55,7 @@ phases :: [Job.Exclude] -> [Phase] ...@@ -55,7 +55,7 @@ phases :: [Job.Exclude] -> [Phase]
phases excludes = phases excludes =
[ Convert.AsgnOp.convert [ Convert.AsgnOp.convert
, Convert.NamedBlock.convert , Convert.NamedBlock.convert
, Convert.Assertion.convert , selectExclude (Job.Assert , Convert.Assertion.convert)
, Convert.BlockDecl.convert , Convert.BlockDecl.convert
, Convert.DuplicateGenvar.convert , Convert.DuplicateGenvar.convert
, selectExclude (Job.Logic , Convert.Logic.convert) , selectExclude (Job.Logic , Convert.Logic.convert)
......
...@@ -15,6 +15,7 @@ import System.Environment (getArgs, withArgs) ...@@ -15,6 +15,7 @@ import System.Environment (getArgs, withArgs)
data Exclude data Exclude
= Always = Always
| Assert
| Interface | Interface
| Logic | Logic
| Succinct | Succinct
...@@ -45,7 +46,7 @@ defaultJob = Job ...@@ -45,7 +46,7 @@ defaultJob = Job
, siloed = nam_ "siloed" &= help ("Lex input files separately, so" , siloed = nam_ "siloed" &= help ("Lex input files separately, so"
++ " macros from earlier files are not defined in later files") ++ " macros from earlier files are not defined in later files")
, exclude = nam_ "exclude" &= name "E" &= typ "CONV" , exclude = nam_ "exclude" &= name "E" &= typ "CONV"
&= help "Exclude a particular conversion (always, interface, or logic)" &= help "Exclude a particular conversion (always, assert, interface, or logic)"
&= groupname "Conversion" &= groupname "Conversion"
, verbose = nam "verbose" &= help "Retain certain conversion artifacts" , verbose = nam "verbose" &= help "Retain certain conversion artifacts"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment