for
input [7:0] A; // 8-bit input vector
output [2:0] Y; // 3-bit encoded output
reg [2:0] Y; // target of assignment
integer i; // Temporary variables for program only
for (i = 0; i < 8; i = i + 1) begin
test = test << 1; // Shift left, pad with 0s
for statements synthesize as cascaded combinational logic
? Verilog unrolls the loop