Rules | Recent posts | topic RSS | Search | Register  | Log in

VHDL to Verilog doubt

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital)
Author Message
surisingh



Joined: 14 Jun 2007
Posts: 23
Helped: 1


Post01 Oct 2008 21:41   VHDL to Verilog doubt

Hi,

I am converting a VHDL code into verilog. I have a procedure in VHDL. The input argument passed to this procedure has different width at different time. Say for example some time I pass 8 bit vector and some time I may pass 16 bit vector.
Inside the procedure they are using 'left and 'right for manipulation.

I know task is equivalent to procedure. But we can't pass an argument with variable width. Isn't it? How to overcome this problem in verilog?
Back to top
ljxpjpjljx



Joined: 05 May 2008
Posts: 198
Helped: 4
Location: Shang Hai


Post02 Oct 2008 5:07   Re: VHDL to Verilog doubt

maybe you can use the length with the max length(16 bit)
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital)
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap