I have a module declared as:
module bin2BCD( input [11:0] bin12_in], output reg [3:0] thousands, output reg [3:0] hundreds, output reg [3:0] tens, output reg [3:0] ones, );
I have another module which generates a 10 bit binary output (call it M) whose maximum value is 861 base 10.
Because of this, I would like instantiate this module with the first two bits of bin12_in set to 0, followed by the binary value of M (to make 12 bits).
How can I pass a 10 bit value to a module that needs a 12 bit input?