Skip to content

naming rule for the synthesised verilog #4454

Answered by whitequark
nlwmode asked this question in Q&A
Discussion options

You must be logged in to vote
  • when do the "" characters appear?

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.

why the constant one is also mapped, other than using 1'h0 directly?

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 …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nlwmode
Comment options

Answer selected by nlwmode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants