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
dadcd6ae
Commit
dadcd6ae
authored
May 15, 2019
by
Dave Eckhardt
Committed by
Zachary Snow
May 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wording tweaks in comments.
parent
02e948f2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
src/Convert/Enum.hs
+1
-1
src/Convert/NamedBlock.hs
+1
-1
src/Convert/Struct.hs
+3
-3
src/Convert/Unique.hs
+3
-3
No files found.
src/Convert/Enum.hs
View file @
dadcd6ae
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
- modules in which that enum type appears. This is not necessarily foolproof,
- modules in which that enum type appears. This is not necessarily foolproof,
- as some tools do allow the use of an enum item even if the actual enum type
- as some tools do allow the use of an enum item even if the actual enum type
- does not appear in that description. The localparams are explicitly sized to
- does not appear in that description. The localparams are explicitly sized to
- match the size of the converted enum type. This conversion
only includes
enum
- match the size of the converted enum type. This conversion
includes only
enum
- items which are actually used within a given description.
- items which are actually used within a given description.
-
-
- SystemVerilog allows for enums to have any number of the items' values
- SystemVerilog allows for enums to have any number of the items' values
...
...
src/Convert/NamedBlock.hs
View file @
dadcd6ae
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
- Conversion for unnamed blocks with contain data declarations
- Conversion for unnamed blocks with contain data declarations
-
-
- SystemVerilog allows data declarations to appear in all blocks, but Verilog
- SystemVerilog allows data declarations to appear in all blocks, but Verilog
-
only allows them to appear
in blocks that are named. This conversion gives
-
allows them to appear only
in blocks that are named. This conversion gives
- such blocks a unique name to placate strict Verilog frontends.
- such blocks a unique name to placate strict Verilog frontends.
-}
-}
...
...
src/Convert/Struct.hs
View file @
dadcd6ae
...
@@ -179,12 +179,12 @@ packerFnName structTf =
...
@@ -179,12 +179,12 @@ packerFnName structTf =
val
=
hash
$
show
structTf
val
=
hash
$
show
structTf
str
=
tail
$
show
val
str
=
tail
$
show
val
-- This is where the magic happens. This is responsible for converti
gn
struct
-- This is where the magic happens. This is responsible for converti
ng
struct
-- accesses, assignments, and literals, given appropriate information about the
-- accesses, assignments, and literals, given appropriate information about the
-- structs and the current declaration context. The general strategy involves
-- structs and the current declaration context. The general strategy involves
-- looking at the innermost type of a node to convert outer uses of fields, and
-- looking at the innermost type of a node to convert outer uses of fields, and
-- then using the outermost type to figure out the corresp
ing struct definition
-- then using the outermost type to figure out the corresp
onding struct
-- for struct literals that are encountered.
--
definition
for struct literals that are encountered.
convertAsgn
::
Structs
->
Types
->
(
LHS
,
Expr
)
->
(
LHS
,
Expr
)
convertAsgn
::
Structs
->
Types
->
(
LHS
,
Expr
)
->
(
LHS
,
Expr
)
convertAsgn
structs
types
(
lhs
,
expr
)
=
convertAsgn
structs
types
(
lhs
,
expr
)
=
(
lhs'
,
expr'
)
(
lhs'
,
expr'
)
...
...
src/Convert/Unique.hs
View file @
dadcd6ae
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
-
-
- Conversion for `unique`, `unique0`, and `priority`
- Conversion for `unique`, `unique0`, and `priority`
-
-
- This conversion simply drops the keywords, as it is
only used
for
- This conversion simply drops the keywords, as it is
used only
for
- optimization. There is no way to force toolchains which don't support
the
- optimization. There is no way to force toolchains which don't support
- keyword to perform such optimization.
-
the
keyword to perform such optimization.
-}
-}
module
Convert.Unique
(
convert
)
where
module
Convert.Unique
(
convert
)
where
...
...
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