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
ad18c583
Commit
ad18c583
authored
Dec 07, 2020
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support default pattern unbased unsized port bindings
parent
2b377cef
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
src/Convert/UnbasedUnsized.hs
+2
-0
test/basic/unbased_unsized_default.sv
+11
-0
test/basic/unbased_unsized_default.v
+11
-0
No files found.
src/Convert/UnbasedUnsized.hs
View file @
ad18c583
...
...
@@ -188,6 +188,8 @@ convertExpr _ (Cast te e) =
Cast
te
$
convertExpr
SelfDetermined
e
convertExpr
_
(
Concat
exprs
)
=
Concat
$
map
(
convertExpr
SelfDetermined
)
exprs
convertExpr
context
(
Pattern
[(
":default"
,
e
@
UU
{})])
=
convertExpr
context
e
convertExpr
_
(
Pattern
items
)
=
Pattern
$
zip
(
map
fst
items
)
...
...
test/basic/unbased_unsized_default.sv
0 → 100644
View file @
ad18c583
module
Example
(
inp
)
;
input
[
4
][
5
]
inp
;
initial
#
1
$
display
(
"%b"
,
inp
)
;
endmodule
module
top
;
Example
e1
(
'
{
default
:
'0
}
)
;
Example
e2
(
'
{
default
:
'1
}
)
;
Example
e3
(
'
{
default
:
'x
}
)
;
Example
e4
(
'
{
default
:
'z
}
)
;
endmodule
test/basic/unbased_unsized_default.v
0 → 100644
View file @
ad18c583
module
Example
(
inp
)
;
input
[
19
:
0
]
inp
;
initial
#
1
$
display
(
"%b"
,
inp
)
;
endmodule
module
top
;
Example
e1
(
{
20
{
1
'
sb0
}}
)
;
Example
e2
(
{
20
{
1
'
sb1
}}
)
;
Example
e3
(
{
20
{
1
'
sbx
}}
)
;
Example
e4
(
{
20
{
1
'
sbz
}}
)
;
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