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
bf1d9283
Commit
bf1d9283
authored
Jul 13, 2020
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interpret package parameters as localparams
parent
b2291a20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
src/Language/SystemVerilog/Parser/Parse.y
+6
-1
No files found.
src/Language/SystemVerilog/Parser/Parse.y
View file @
bf1d9283
...
...
@@ -823,7 +823,7 @@ PackageItems :: { [PackageItem] }
|
PITrace
PackageItem
PackageItems
{
$
1
:
$
2
++
$
3
}
PackageItem
::
{
[
PackageItem
]
}
:
DeclTokens
(
";"
)
{
map
Decl
$
parseDTsAsDecls
$
1
}
|
ParameterDecl
(
";"
)
{
map
Decl
$
1
}
|
ParameterDecl
(
";"
)
{
map
(
Decl
.
makeLocalparam
)
$
1
}
|
NonDeclPackageItem
{
$
1
}
NonDeclPackageItem
::
{
[
PackageItem
]
}
:
"typedef"
Type
Identifier
";"
{
[
Typedef
$
2
$
3
]
}
...
...
@@ -1462,4 +1462,9 @@ validateGenCases items =
where
(
exprs
,
_
)
=
unzip
items
makeLocalparam
::
Decl
->
Decl
makeLocalparam
(
Param
_
t
x
e
)
=
Param
Localparam
t
x
e
makeLocalparam
(
ParamType
_
x
mt
)
=
ParamType
Localparam
x
mt
makeLocalparam
other
=
other
}
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