subdesign LED_7seg_driver {
    D[8..0][4..0], CLK : input;
    SEG[8..0], NUM[7..0] : output;
}

variable
    in_buf[8..0][4..0] : DFF;
    decoder_out[8..0][7..0] : NODE;

begin
    in_buf[].clk = CLK;
    in_buf[8..0][4..0] = D[8..0][4..0];

    FOR i=1 TO 8 GENERATE
        decoder_out[i] = 


		in_buf[i][0]
	END GENERATE;



 
end;