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
111e04f8
Commit
111e04f8
authored
Sep 25, 2019
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove extraneous explicit unsigned in params (resolves #47)
parent
76663c78
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
src/Convert/Unsigned.hs
+1
-0
test/basic/unsigned.sv
+4
-0
test/basic/unsigned.v
+4
-0
No files found.
src/Convert/Unsigned.hs
View file @
111e04f8
...
...
@@ -21,6 +21,7 @@ convert =
traverseTypes
convertType
convertType
::
Type
->
Type
convertType
(
Implicit
Unsigned
rs
)
=
Implicit
Unspecified
rs
convertType
(
IntegerVector
t
Unsigned
rs
)
=
IntegerVector
t
Unspecified
rs
convertType
(
Net
t
Unsigned
rs
)
=
Net
t
Unspecified
rs
convertType
other
=
other
test/basic/unsigned.sv
View file @
111e04f8
...
...
@@ -4,4 +4,8 @@ module top;
for
(
int
unsigned
i
=
0
;
i
<
4
;
i
++
)
arr
[
i
]
=
i
;
initial
$
display
(
arr
)
;
parameter
unsigned
foo
=
1
;
localparam
unsigned
bar
=
1
;
initial
$
display
(
foo
,
bar
)
;
endmodule
test/basic/unsigned.v
View file @
111e04f8
...
...
@@ -6,4 +6,8 @@ module top;
arr
[
i
]
=
i
;
end
initial
$
display
(
arr
)
;
parameter
foo
=
1
;
localparam
bar
=
1
;
initial
$
display
(
foo
,
bar
)
;
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