Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv2v
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
sv2v
Commits
88d632fb
Commit
88d632fb
authored
Sep 07, 2021
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restrict implicit logic to output ports
parent
598b4260
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/Convert/PortDecl.hs
+3
-3
No files found.
src/Convert/PortDecl.hs
View file @
88d632fb
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment