output reg [4:0] ones ); integer i; always@(A) begin ones = 0; //initialize count variable. for(i=0;i<16;i=i+1) //check for all the bits.
確定! 回上一頁