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
7a00c36a
Commit
7a00c36a
authored
Feb 09, 2020
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jump conversion keeps timing controls at the top level
parent
eb76d16d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
src/Convert/Jump.hs
+2
-0
test/basic/jump.sv
+8
-0
test/basic/jump.v
+9
-0
No files found.
src/Convert/Jump.hs
View file @
7a00c36a
...
@@ -62,6 +62,8 @@ convertModuleItem (AlwaysC kw stmt) = convertMIStmt (AlwaysC kw) stmt
...
@@ -62,6 +62,8 @@ convertModuleItem (AlwaysC kw stmt) = convertMIStmt (AlwaysC kw) stmt
convertModuleItem
other
=
other
convertModuleItem
other
=
other
convertMIStmt
::
(
Stmt
->
ModuleItem
)
->
Stmt
->
ModuleItem
convertMIStmt
::
(
Stmt
->
ModuleItem
)
->
Stmt
->
ModuleItem
convertMIStmt
constructor
(
Timing
c
stmt
)
=
convertMIStmt
(
constructor
.
Timing
c
)
stmt
convertMIStmt
constructor
stmt
=
convertMIStmt
constructor
stmt
=
constructor
stmt''
constructor
stmt''
where
where
...
...
test/basic/jump.sv
View file @
7a00c36a
...
@@ -106,4 +106,12 @@ module top;
...
@@ -106,4 +106,12 @@ module top;
$
display
(
"Loop B:"
,
i
)
;
$
display
(
"Loop B:"
,
i
)
;
end
end
always
#
1
for
(
int
i
=
0
;
i
<
10
;
++
i
)
begin
$
display
(
"Loop C-1:"
,
i
)
;
break
;
$
display
(
"UNREACHABLE "
,
`__LINE__
)
;
end
initial
#
5
$
finish
;
endmodule
endmodule
test/basic/jump.v
View file @
7a00c36a
...
@@ -80,4 +80,13 @@ module top;
...
@@ -80,4 +80,13 @@ module top;
end
end
end
end
always
#
1
begin
:
loop_c
integer
i
;
for
(
i
=
0
;
i
<
10
;
++
i
)
begin
$
display
(
"Loop C-1:"
,
i
)
;
i
=
10
;
end
end
initial
#
5
$
finish
;
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