Thanks for this!

wire g;
assign g = f[2];  // assign bit 2 of f to g;

The bit-select can be variable:

wire [7:0] h;
wire i = f[h];

You can do bit slices, but the range must be constants:

wire [3:0] j = e[7:4];

Can I select an arbitrary range of wires from a bus?  i.e:

wire [3:0] j = e[1,3:4,7]

I'm not entirely sure why you'd want non-contiguous elements, but
maybe it could be useful.  I'm mostly just curious :)
_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)

Reply via email to