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
96cfe18c
Commit
96cfe18c
authored
Feb 07, 2022
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass through support for functions with output ports
parent
eb42042c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletions
+14
-1
CHANGELOG.md
+1
-0
src/Language/SystemVerilog/Parser/Parse.y
+2
-1
test/nosim/func_output.sv
+11
-0
No files found.
CHANGELOG.md
View file @
96cfe18c
...
...
@@ -6,6 +6,7 @@
`'1`
,
`'x`
) via
`--exclude UnbasedUniszed`
*
Added support for enumerated type ranges (e.g.,
`enum { X[3:5] }`
)
*
Added support for passing through DPI imports and exports
*
Added support for passing through functions with output ports
### Other Enhancements
...
...
src/Language/SystemVerilog/Parser/Parse.y
View file @
96cfe18c
...
...
@@ -1571,9 +1571,10 @@ combineDeclsAndStmts (a1, b1) (a2, b2) =
makeInput
::
Decl
->
Decl
makeInput
(
Variable
Local
t
x
a
e
)
=
Variable
Input
t
x
a
e
makeInput
(
Variable
Input
t
x
a
e
)
=
Variable
Input
t
x
a
e
makeInput
(
Variable
Output
t
x
a
e
)
=
Variable
Output
t
x
a
e
makeInput
(
CommentDecl
c
)
=
CommentDecl
c
makeInput
other
=
error
$
"unexpected non-var or non-
input
decl: "
++
(
show
other
)
error
$
"unexpected non-var or non-
port function
decl: "
++
(
show
other
)
checkTag
::
String
->
String
->
a
->
ParseState
a
checkTag
_
""
x
=
return
x
...
...
test/nosim/func_output.sv
0 → 100644
View file @
96cfe18c
module
top
;
function
automatic
integer
f
;
input
integer
x
;
output
integer
y
;
f
=
x
*
3
;
y
=
x
*
5
;
endfunction
integer
x
,
y
;
initial
x
=
f
(
-
1
,
y
)
;
initial
$
display
(
x
,
y
)
;
endmodule
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