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
3d3359d3
Commit
3d3359d3
authored
Oct 11, 2019
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apply BlockDecl conversions to tasks and functions
parent
5ef24d2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
src/Convert/BlockDecl.hs
+15
-3
No files found.
src/Convert/BlockDecl.hs
View file @
3d3359d3
...
...
@@ -15,9 +15,21 @@ import Language.SystemVerilog.AST
convert
::
[
AST
]
->
[
AST
]
convert
=
map
$
traverseDescriptions
$
traverseModuleItems
$
traverseStmts
$
convertStmt
map
$
traverseDescriptions
$
traverseModuleItems
(
convertModuleItem
.
traverseStmts
convertStmt
)
convertModuleItem
::
ModuleItem
->
ModuleItem
convertModuleItem
(
MIPackageItem
(
Function
ml
t
f
decls
stmts
))
=
MIPackageItem
$
Function
ml
t
f
decls'
stmts'
where
Block
Seq
""
decls'
stmts'
=
convertStmt
$
Block
Seq
""
decls
stmts
convertModuleItem
(
MIPackageItem
(
Task
ml
f
decls
stmts
))
=
MIPackageItem
$
Task
ml
f
decls'
stmts'
where
Block
Seq
""
decls'
stmts'
=
convertStmt
$
Block
Seq
""
decls
stmts
convertModuleItem
other
=
other
convertStmt
::
Stmt
->
Stmt
convertStmt
(
Block
Seq
name
decls
stmts
)
=
...
...
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