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
d3dbaf06
Commit
d3dbaf06
authored
Jun 15, 2024
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle resetall when creating implicit nets
parent
6eda946f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
CHANGELOG.md
+1
-0
src/Convert/ImplicitNet.hs
+6
-3
test/core/implicit_net_reset.sv
+6
-0
test/core/implicit_net_reset.v
+5
-0
No files found.
CHANGELOG.md
View file @
d3dbaf06
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
### Bug Fixes
### Bug Fixes
*
Fixed
`--write path/to/dir/`
with directives like
`` `default_nettype ``
*
Fixed
`--write path/to/dir/`
with directives like
`` `default_nettype ``
*
Fixed
`` `resetall ``
not resetting the
`` `default_nettype ``
### Other Enhancements
### Other Enhancements
...
...
src/Convert/ImplicitNet.hs
View file @
d3dbaf06
...
@@ -27,9 +27,12 @@ traverseDescription defaultNetType (PackageItem (Directive str)) =
...
@@ -27,9 +27,12 @@ traverseDescription defaultNetType (PackageItem (Directive str)) =
where
where
prefix
=
"`default_nettype "
prefix
=
"`default_nettype "
defaultNetType'
=
defaultNetType'
=
if
isPrefixOf
prefix
str
if
isPrefixOf
prefix
str
then
then
parseDefaultNetType
$
drop
(
length
prefix
)
str
parseDefaultNetType
$
drop
(
length
prefix
)
str
else
defaultNetType
else
if
str
==
"`resetall"
then
Just
TWire
else
defaultNetType
traverseDescription
defaultNetType
description
=
traverseDescription
defaultNetType
description
=
(
defaultNetType
,
partScoper
traverseDeclM
(
defaultNetType
,
partScoper
traverseDeclM
(
traverseModuleItemM
defaultNetType
)
(
traverseModuleItemM
defaultNetType
)
...
...
test/core/implicit_net_reset.sv
0 → 100644
View file @
d3dbaf06
`default_nettype
none
`resetall
module
top
;
assign
y
=
1
;
assign
x
=
~
y
;
endmodule
test/core/implicit_net_reset.v
0 → 100644
View file @
d3dbaf06
module
top
;
wire
x
,
y
;
assign
y
=
1
;
assign
x
=
~
y
;
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