Abstract
An identifier in Verilog and SystemVerilog is the user-specified name of some object, such as the name of a module, wire, variable, or function. Verilog and System Verilog are case-sensitive languages, meaning that lowercase letters and uppercase letters are perceived as different in identifiers and in keywords. Keywords are always in all lowercase letters. User-created identifiers can use a mix of lowercase and uppercase letters, as well as numbers and the special characters _, $, and \ (the latter is an escape character).
Note: the code examples in this chapter are contrived in order to illustrate each gotcha using small examples. In real design and verification code, these gotchas might not be as obvious or easy to debug.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2007 Springer Science+Business Media, LLC
About this chapter
Cite this chapter
Sutherland, S., Mills, D. (2007). Declaration and Literal Number Gotchas. In: Verilog and SystemVerilog Gotchas. Springer, Boston, MA. https://doi.org/10.1007/978-0-387-71715-9_2
Download citation
DOI: https://doi.org/10.1007/978-0-387-71715-9_2
Publisher Name: Springer, Boston, MA
Print ISBN: 978-0-387-71714-2
Online ISBN: 978-0-387-71715-9
eBook Packages: EngineeringEngineering (R0)