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
5f26e755
Commit
5f26e755
authored
Apr 10, 2021
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preserve implicitness of task and function ports
parent
d0d897b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
src/Language/SystemVerilog/Parser/Parse.y
+3
-12
No files found.
src/Language/SystemVerilog/Parser/Parse.y
View file @
5f26e755
...
...
@@ -848,9 +848,9 @@ PackageItem :: { [PackageItem] }
NonDeclPackageItem
::
{
[
PackageItem
]
}
:
"typedef"
Type
Identifier
";"
{
[
Decl
$
ParamType
Localparam
$
3
$
2
]
}
|
"typedef"
Type
Identifier
DimensionsNonEmpty
";"
{
[
Decl
$
ParamType
Localparam
$
3
(
UnpackedType
$
2
$
4
)]
}
|
"function"
Lifetime
FuncRetAndName
TFItems
DeclsAndStmts
endfunction
opt
(
Tag
)
{
[
Function
$
2
(
fst
$
3
)
(
snd
$
3
)
(
map
defaultFuncInput
$
(
map
makeInput
$
4
)
++
fst
$
5
)
(
snd
$
5
)]
}
|
"function"
Lifetime
"void"
Identifier
TFItems
DeclsAndStmts
endfunction
opt
(
Tag
)
{
[
Task
$
2
$
4
(
map
defaultFuncInput
$
$
5
++
fst
$
6
)
(
snd
$
6
)]
}
|
"task"
Lifetime
Identifier
TFItems
DeclsAndStmts
endtask
opt
(
Tag
)
{
[
Task
$
2
$
3
(
map
defaultFuncInput
$
$
4
++
fst
$
5
)
(
snd
$
5
)]
}
|
"function"
Lifetime
FuncRetAndName
TFItems
DeclsAndStmts
endfunction
opt
(
Tag
)
{
[
Function
$
2
(
fst
$
3
)
(
snd
$
3
)
(
map
makeInput
$
4
++
fst
$
5
)
(
snd
$
5
)]
}
|
"function"
Lifetime
"void"
Identifier
TFItems
DeclsAndStmts
endfunction
opt
(
Tag
)
{
[
Task
$
2
$
4
(
$
5
++
fst
$
6
)
(
snd
$
6
)]
}
|
"task"
Lifetime
Identifier
TFItems
DeclsAndStmts
endtask
opt
(
Tag
)
{
[
Task
$
2
$
3
(
$
4
++
fst
$
5
)
(
snd
$
5
)]
}
|
"import"
PackageImportItems
";"
{
map
(
uncurry
Import
)
$
2
}
|
"export"
PackageImportItems
";"
{
map
(
uncurry
Export
)
$
2
}
|
"export"
"*"
"::"
"*"
";"
{
[
Export
""
""
]
}
...
...
@@ -1433,15 +1433,6 @@ makeInput (CommentDecl c) = CommentDecl c
makeInput
other
=
error
$
"unexpected non-var or non-input decl: "
++
(
show
other
)
defaultFuncInput
::
Decl
->
Decl
defaultFuncInput
(
Variable
dir
(
Implicit
sg
rs
)
x
a
e
)
=
Variable
dir
t
x
a
e
where
t
=
if
dir
==
Input
||
dir
==
Inout
then
IntegerVector
TLogic
sg
rs
else
Implicit
sg
rs
defaultFuncInput
other
=
other
combineTags
::
Identifier
->
Identifier
->
Identifier
combineTags
a
""
=
a
combineTags
""
b
=
b
...
...
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