Commit 88d632fb by Zachary Snow

restrict implicit logic to output ports

parent 598b4260
...@@ -81,9 +81,9 @@ convertTFDecls = ...@@ -81,9 +81,9 @@ convertTFDecls =
-- given helpfully extracted information, update the given declaration -- given helpfully extracted information, update the given declaration
rewrite :: Decl -> Maybe Decl -> Direction -> Identifier -> Expr -> ModuleItem rewrite :: Decl -> Maybe Decl -> Direction -> Identifier -> Expr -> ModuleItem
-- implicitly-typed ports default to `logic` in SystemVerilog -- implicitly-typed output ports default to `logic` in SystemVerilog
rewrite (Variable d (Implicit sg rs) x a e) Nothing _ _ _ = rewrite (Variable Output (Implicit sg rs) x a e) Nothing _ _ _ =
MIPackageItem $ Decl $ Variable d (IntegerVector TLogic sg rs) x a e MIPackageItem $ Decl $ Variable Output (IntegerVector TLogic sg rs) x a e
-- not a relevant port declaration -- not a relevant port declaration
rewrite decl Nothing _ _ _ = rewrite decl Nothing _ _ _ =
MIPackageItem $ Decl decl MIPackageItem $ Decl decl
......
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