Commit dadcd6ae by Dave Eckhardt Committed by Zachary Snow

Wording tweaks in comments.

parent 02e948f2
...@@ -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
......
...@@ -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.
-} -}
......
...@@ -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 convertign struct -- This is where the magic happens. This is responsible for converting 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 corresping struct definition -- then using the outermost type to figure out the corresponding 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')
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment