Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Verilog syntax question

Status
Not open for further replies.

alzomor

Advanced Member level 2
Joined
Jun 9, 2005
Messages
674
Helped
39
Reputation
78
Reaction score
8
Trophy points
1,298
Location
Germany
Activity points
6,406
verilog bus syntax ],

Hi

What is the meaning of this character "\" in verilog ?
and when it's used?
Whats the differenc between
.signal(\bus[0] )
and
.signal(bus[0] )

Salam
Hossam Alzomor
w ww.i-g.org
 

Hi,
\ Character is used at the beginning of escaped identifier ,
So For ".signal(bus[0] ) " value of bus[0] is passed ..
but in case of ".signal(\bus[0] ) " : Value of the variable defined using escaped identifier (\bus[0])is passed ..Which is different from simple from first case.......

Regards
 

I don't understand what do you mean,

is the escape identifire some thing like "_" in c just a normal character like other characters?

Salam
Hossam Alzomor
ww.i-g.org

Added after 8 minutes:

Thanks

Now I understand what do you mean

.signal(bus[0] ) ==> means signal no 0 of the bus

.signal(\bus[0] ) ==> means the signal called \Bus[0]
Is that true?

Salam
Hossam Alzomor
ww.i-g.org
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top