{- sv2v - Author: Zachary Snow - - Conversion for `unique`, `unique0`, and `priority` (verification checks) - - This conversion simply drops these keywords, as they are only used for - optimization and verification. There may be ways to communicate these - attributes to certain downstream toolchains. -} module Convert.Unique (convert) where import Convert.Traverse import Language.SystemVerilog.AST convert :: [AST] -> [AST] convert = map $ traverseDescriptions $ traverseModuleItems $ traverseStmts $ traverseNestedStmts convertStmt convertStmt :: Stmt -> Stmt convertStmt (If _ cc s1 s2) = If NoCheck cc s1 s2 convertStmt (Case _ kw expr cases) = Case NoCheck kw expr cases convertStmt other = other