In reply to dave_59:
Hi dave,
Thanks for your quick response.
Each b_int is of say 256 bits, and say i have variables from b_0_int to b_127_int , I will have to do an assign such as :
assign b_int[0] = b_0_int ;
.
.
.
.
.
assign b_int[127] = b_127_int;
This adds about 128 buffers just for the usage of the modulexyz 128 times. In the above example, I have the b_int mentioned as 8 bits, but how about when the width of it increases. I want to have variability on fly. This is how i meant more code (as a result more buffers).
Thankyou for the alternatives suggested!
Although , Option 1) is not feasible when the variable used is of higher width. and Option 2) woudn’t be right as i want “b” of modulexyz to receive just b_0_int and not the concatenated value.
Hence I see the need to use define macros. Is the usage of define not possible ?