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
bef9b1a3
Commit
bef9b1a3
authored
Jul 26, 2023
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow inout task and function ports
parent
896b375d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
3 deletions
+26
-3
CHANGELOG.md
+4
-0
src/Language/SystemVerilog/Parser/Parse.y
+2
-3
test/basic/task_inout.sv
+20
-0
No files found.
CHANGELOG.md
View file @
bef9b1a3
...
@@ -5,6 +5,10 @@
...
@@ -5,6 +5,10 @@
*
Removed deprecated CLI flags
`-d`
/
`-e`
/
`-i`
, which have been aliased to
*
Removed deprecated CLI flags
`-d`
/
`-e`
/
`-i`
, which have been aliased to
`-D`
/
`-E`
/
`-I`
with a warning since late 2019
`-D`
/
`-E`
/
`-I`
with a warning since late 2019
### Bug Fixes
*
Fixed an issue that prevented parsing tasks and functions with
`inout`
ports
## v0.0.11
## v0.0.11
### New Features
### New Features
...
...
src/Language/SystemVerilog/Parser/Parse.y
View file @
bef9b1a3
...
@@ -1604,9 +1604,8 @@ combineDeclsAndStmts (a1, b1) (a2, b2) =
...
@@ -1604,9 +1604,8 @@ combineDeclsAndStmts (a1, b1) (a2, b2) =
else
return
(
a1
++
a2
,
b1
++
b2
)
else
return
(
a1
++
a2
,
b1
++
b2
)
makeInput
::
Decl
->
Decl
makeInput
::
Decl
->
Decl
makeInput
(
Variable
Local
t
x
a
e
)
=
Variable
Input
t
x
a
e
makeInput
(
Variable
d
t
x
a
e
)
=
Variable
d'
t
x
a
e
makeInput
(
Variable
Input
t
x
a
e
)
=
Variable
Input
t
x
a
e
where
d'
=
if
d
==
Local
then
Input
else
d
makeInput
(
Variable
Output
t
x
a
e
)
=
Variable
Output
t
x
a
e
makeInput
(
CommentDecl
c
)
=
CommentDecl
c
makeInput
(
CommentDecl
c
)
=
CommentDecl
c
makeInput
other
=
makeInput
other
=
error
$
"unexpected non-var or non-port function decl: "
++
(
show
other
)
error
$
"unexpected non-var or non-port function decl: "
++
(
show
other
)
...
...
test/basic/task_inout.sv
0 → 100644
View file @
bef9b1a3
module
top
;
task
t
(
inout
[
7
:
0
]
x
,
y
)
;
begin
x
=
~
x
;
if
(
y
)
begin
x
=
x
*
3
;
y
=
y
+
1
;
end
end
endtask
reg
[
7
:
0
]
a
,
b
;
always
@*
t
(
a
,
b
)
;
initial
begin
a
=
0
;
b
=
1
;
$
monitor
(
"%d %b %b"
,
$
time
,
a
,
b
)
;
repeat
(
100
)
#
5
b
=
b
*
3
-
1
;
end
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