Wording tweaks in comments.

This commit is contained in:
Dave Eckhardt 2019-05-15 09:55:15 -04:00 committed by Zachary Snow
parent 02e948f283
commit dadcd6ae24
4 changed files with 8 additions and 8 deletions

View File

@ -7,7 +7,7 @@
- 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
- 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.
-
- SystemVerilog allows for enums to have any number of the items' values

View File

@ -4,7 +4,7 @@
- Conversion for unnamed blocks with contain data declarations
-
- 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.
-}

View File

@ -179,12 +179,12 @@ packerFnName structTf =
val = hash $ show structTf
str = tail $ show val
-- This is where the magic happens. This is responsible for convertign struct
-- This is where the magic happens. This is responsible for converting struct
-- accesses, assignments, and literals, given appropriate information about the
-- 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
-- then using the outermost type to figure out the corresping struct definition
-- for struct literals that are encountered.
-- then using the outermost type to figure out the corresponding struct
-- definition for struct literals that are encountered.
convertAsgn :: Structs -> Types -> (LHS, Expr) -> (LHS, Expr)
convertAsgn structs types (lhs, expr) =
(lhs', expr')

View File

@ -3,9 +3,9 @@
-
- Conversion for `unique`, `unique0`, and `priority`
-
- This conversion simply drops the keywords, as it is only used for
- optimization. There is no way to force toolchains which don't support the
- keyword to perform such optimization.
- 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 keyword to perform such optimization.
-}
module Convert.Unique (convert) where