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
814f9659
Commit
814f9659
authored
Sep 24, 2021
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix assertion removal in verbose mode causing orphaned statements
parent
540a0c8e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
CHANGELOG.md
+1
-0
src/Convert/Traverse.hs
+2
-0
test/core/assert.sv
+14
-0
No files found.
CHANGELOG.md
View file @
814f9659
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
unpacked arrays, or in designs with multi-dimensional instances
unpacked arrays, or in designs with multi-dimensional instances
*
Fixed conversion of module-scoped references to modports
*
Fixed conversion of module-scoped references to modports
*
Fixed conversion of references to modports nested within types in expressions
*
Fixed conversion of references to modports nested within types in expressions
*
Fixed assertion removal in verbose mode causing orphaned statements
## v0.0.8
## v0.0.8
...
...
src/Convert/Traverse.hs
View file @
814f9659
...
@@ -217,7 +217,9 @@ traverseSinglyNestedStmtsM fullMapper = cs
...
@@ -217,7 +217,9 @@ traverseSinglyNestedStmtsM fullMapper = cs
where
where
cs
(
StmtAttr
a
stmt
)
=
fullMapper
stmt
>>=
return
.
StmtAttr
a
cs
(
StmtAttr
a
stmt
)
=
fullMapper
stmt
>>=
return
.
StmtAttr
a
cs
(
Block
_
""
[]
[]
)
=
return
Null
cs
(
Block
_
""
[]
[]
)
=
return
Null
cs
(
Block
_
""
[]
[
CommentStmt
{}])
=
return
Null
cs
(
Block
_
""
[]
[
stmt
])
=
fullMapper
stmt
cs
(
Block
_
""
[]
[
stmt
])
=
fullMapper
stmt
cs
(
Block
_
""
[
CommentDecl
{}]
[]
)
=
return
Null
cs
(
Block
Seq
name
decls
stmts
)
=
do
cs
(
Block
Seq
name
decls
stmts
)
=
do
stmts'
<-
mapM
fullMapper
stmts
stmts'
<-
mapM
fullMapper
stmts
return
$
Block
Seq
name
decls
$
concatMap
explode
stmts'
return
$
Block
Seq
name
decls
$
concatMap
explode
stmts'
...
...
test/core/assert.sv
View file @
814f9659
...
@@ -15,4 +15,18 @@ module Module(input clock, input clear, input data);
...
@@ -15,4 +15,18 @@ module Module(input clock, input clear, input data);
assert
property
(
x
==
y
)
;
assert
property
(
x
==
y
)
;
named_stmt:
assert
property
(
x
==
y
)
;
named_stmt:
assert
property
(
x
==
y
)
;
end
end
always
@
(
posedge
x
)
begin
assert
(
1
)
;
end
always
@
(
posedge
x
)
case
(
x
)
0
:
begin
assert
(
1
)
;
end
1
:
assert
(
1
)
;
default:
begin
assert
(
1
)
;
end
endcase
endmodule
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