Indexed vector part selects in Verilog 1995

J

Jon Beniston

Guest
Hi all,

Does anyone know of a crafty way of emulating the behaviour of Verilog
2001 indexed vector part selects in Verilog 1995?

i.e.

var = data[i*width +: width];

where i is a variable in a function, and width is constant.

Cheers,
Jon
 
var = data>>i*width; // assumes var is "width" wide


"Jon Beniston" <jon@beniston.com> wrote in message
news:e87b9ce8.0409170713.1f5891de@posting.google.com...
Hi all,

Does anyone know of a crafty way of emulating the behaviour of Verilog
2001 indexed vector part selects in Verilog 1995?

i.e.

var = data[i*width +: width];

where i is a variable in a function, and width is constant.

Cheers,
Jon
 

Welcome to EDABoard.com

Sponsor

Back
Top