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
84986cc1
Commit
84986cc1
authored
Jun 03, 2021
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix errant reordering on cs/ps alias idents
parent
24a79ffe
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
5 deletions
+29
-5
src/Convert/Package.hs
+1
-5
test/basic/import_no_reorder.sv
+20
-0
test/basic/import_no_reorder.v
+8
-0
No files found.
src/Convert/Package.hs
View file @
84986cc1
...
...
@@ -656,12 +656,8 @@ traverseTypeIdentsM identMapper = fullMapper
fullMapper
=
typeMapper
>=>
traverseTypeExprsM
(
traverseExprIdentsM
identMapper
)
>=>
traverseSinglyNestedTypesM
fullMapper
typeMapper
(
Alias
x
t
)
=
aliasHelper
(
Alias
)
x
t
typeMapper
(
PSAlias
p
x
t
)
=
aliasHelper
(
PSAlias
p
)
x
t
typeMapper
(
CSAlias
c
p
x
t
)
=
aliasHelper
(
CSAlias
c
p
)
x
t
typeMapper
(
Alias
x
t
)
=
identMapper
x
>>=
return
.
flip
Alias
t
typeMapper
other
=
return
other
aliasHelper
constructor
x
t
=
identMapper
x
>>=
\
x'
->
return
$
constructor
x'
t
-- visits all identifiers in an LHS
traverseLHSIdentsM
::
Monad
m
=>
MapperM
m
Identifier
->
MapperM
m
LHS
...
...
test/basic/import_no_reorder.sv
0 → 100644
View file @
84986cc1
package
P
;
typedef
logic
T
;
endpackage
package
Q
;
typedef
logic
[
7
:
0
]
U
;
endpackage
`define
DUMP
(
x
)
initial
$
display
(`"
x
:
%
0d
%
b
`",
$
bits
(
x
),
x
)
;
module
top
;
P
::
T
a
;
import
Q
::
U
;
typedef
U
T
;
U
b
;
T
c
;
`DUMP
(
a
)
`DUMP
(
b
)
`DUMP
(
c
)
endmodule
test/basic/import_no_reorder.v
0 → 100644
View file @
84986cc1
`define
DUMP
(
x
)
initial
$
display
(
`
"x: %0d %b`"
,
$
bits
(
x
)
,
x
)
;
module
top
;
wire
a
;
wire
[
7
:
0
]
b
,
c
;
`DUMP
(
a
)
`DUMP
(
b
)
`DUMP
(
c
)
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