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
821b8bc9
Commit
821b8bc9
authored
Jan 26, 2021
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix loop in logic indirection typing
parent
b22cd210
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletions
+30
-1
src/Convert/Logic.hs
+2
-1
test/basic/wire_reg.sv
+14
-0
test/basic/wire_reg.v
+14
-0
No files found.
src/Convert/Logic.hs
View file @
821b8bc9
...
...
@@ -115,7 +115,8 @@ traverseModuleItem ports scopes =
,
AlwaysC
AlwaysComb
$
Asgn
AsgnOpEq
Nothing
lhs
(
Ident
x
)
]
where
t
=
TypeOf
expr
t
=
Net
(
NetType
TWire
)
Unspecified
[(
DimsFn
FnBits
$
Right
expr
,
RawNum
1
)]
x
=
"sv2v_tmp_"
++
shortHash
(
lhs
,
expr
)
-- rewrite port bindings to use temporary nets where necessary
fixModuleItem
(
Instance
moduleName
params
instanceName
rs
bindings
)
=
...
...
test/basic/wire_reg.sv
0 → 100644
View file @
821b8bc9
module
top
(
inp
,
out
)
;
input
wire
inp
;
reg
data
;
always
@*
data
=
inp
;
output
logic
[
1
:
0
]
out
;
parameter
ON
=
1
;
generate
if
(
ON
)
begin
:
blk
assign
out
[
0
]
=
data
;
always
@*
out
[
1
]
=
data
;
end
endgenerate
endmodule
test/basic/wire_reg.v
0 → 100644
View file @
821b8bc9
module
top
(
inp
,
out
)
;
input
wire
inp
;
reg
data
;
always
@*
data
=
inp
;
output
reg
[
1
:
0
]
out
;
parameter
ON
=
1
;
generate
if
(
ON
)
begin
:
blk
always
@*
out
[
0
]
=
data
;
always
@*
out
[
1
]
=
data
;
end
endgenerate
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