K
Konx
Guest
Hello everyone.
I was searching in the group to check if someone have had the same
problem, and I've found this:
http://groups.google.it/group/comp.lang.verilog/browse_frm/thread/f230e591b38315f8#
Now, I understand that I can just assign the incoming "array [31:0]"
to "int a" without problem.
But in my case the input array is a 16-bit array.
Can I write inside my code something like:
input [15:0] window_size;
int a = window_size;
Could I have any problem, if I do in this way? or it is the "compiler"
that take care of filling the remaining 16 bit of the integer? (I'm
working on a 32-bit machine).
Thanks for help
Francesco.
I was searching in the group to check if someone have had the same
problem, and I've found this:
http://groups.google.it/group/comp.lang.verilog/browse_frm/thread/f230e591b38315f8#
Now, I understand that I can just assign the incoming "array [31:0]"
to "int a" without problem.
But in my case the input array is a 16-bit array.
Can I write inside my code something like:
input [15:0] window_size;
int a = window_size;
Could I have any problem, if I do in this way? or it is the "compiler"
that take care of filling the remaining 16 bit of the integer? (I'm
working on a 32-bit machine).
Thanks for help
Francesco.