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
bb2a8feb
Commit
bb2a8feb
authored
Sep 15, 2019
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
module item traversals visit items with attributes
parent
77b9d2f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
src/Convert/Traverse.hs
+2
-0
test/basic/attr.sv
+7
-0
test/basic/attr.v
+7
-0
No files found.
src/Convert/Traverse.hs
View file @
bb2a8feb
...
...
@@ -128,6 +128,8 @@ traverseModuleItemsM mapper (Part extern kw lifetime name ports items) = do
mapM
fullGenItemMapper
genItems
>>=
mapper
.
Generate
fullMapper
(
Generate
genItems
)
=
mapM
fullGenItemMapper
genItems
>>=
mapper
.
Generate
fullMapper
(
MIAttr
attr
mi
)
=
fullMapper
mi
>>=
return
.
MIAttr
attr
fullMapper
other
=
mapper
other
fullGenItemMapper
=
traverseNestedGenItemsM
genItemMapper
genItemMapper
(
GenModuleItem
moduleItem
)
=
do
...
...
test/basic/attr.sv
0 → 100644
View file @
bb2a8feb
module
top
;
(
*
foo
=
"bar"
*
)
logic
x
;
initial
begin
x
=
1
;
$
display
(
x
)
;
end
endmodule
test/basic/attr.v
0 → 100644
View file @
bb2a8feb
module
top
;
(
*
foo
=
"bar"
*
)
reg
x
;
initial
begin
x
=
1
;
$
display
(
x
)
;
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