Pointer in Verilog

A

anand

Guest
This has been asked in an interview.
How does one declare and use a pointer variable in Verilog HDL?
Example would be helpful!
 
anand wrote:
How does one declare and use a pointer variable in Verilog HDL?
One doesn't, because there is no such thing. Verilog is similar to C,
but not identical. ;-)

I'm new to Verilog myself, so if I'm wrong someone please correct me,
but as far as I know, in Verilog there are only registers and wires. I
suppose you could use a register to contain the address of some location
in an external block of RAM, but since there is no dereference operator
as there is in C (ie; the asterisk "*"), I wouldn't really call a
register a pointer.

Ron
 

Welcome to EDABoard.com

Sponsor

Back
Top