naming rule for the synthesised verilog #4454
-
The “\” character that appears in the output verilog file:
The scripts are:
Then, the final synthesised verilog are:
The Question
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The Verilog specification normally restricts the characters that can appear in identifiers to be alphanumeric, starting with an alphabetic one. The initial backslash expands this character set to include any non-space character, with space being the terminal delimiter.
This is a property of a particular synthesis workflow. Some components of some toolchains require all ports to be connected to wires, otherwise they cannot process the netlist, which is one reason why you might see a wire being driven with a constant. Other reasons you may see this could be convenience of emitting a netlist, or a desire to give the constant a name for debugging purposes. The exact answer will depend on your particular toolchain. (Note that the single backtick only works for highlighting/escaping code within a single line of Markdown. To add a codeblock you need the triple backtick on its own line before and after.) |
Beta Was this translation helpful? Give feedback.
The Verilog specification normally restricts the characters that can appear in identifiers to be alphanumeric, starting with an alphabetic one. The initial backslash expands this character set to include any non-space character, with space being the terminal delimiter.
This is a property of a particular synthesis workflow. Some components of some toolchains require all ports to be connected to wires, otherwise they cannot process the netlist, which is one reason why you might see a wire being driven with a constant. Other reasons you may see this could be convenience of emitting a …