/*本模块功能为数码管显示，把6 个数码管分成3 个2 位十进制数字。输入为三个两位数，输出为数码管的位选和数据段*/
module LED_tube (
    input wire clk,
    input wire rst_n,
    input wire [7:0] numin_1;
    input wire [7:0] numin_2;
    input wire [7:0] numin_3;
    
    output wire [5:0] SEL,
    output wire [7:0] DIG
);
// // 三个两位数
// wire [7:0] numin_1;
// wire [7:0] numin_2;
// wire [7:0] numin_3;
// assign numin_1 = 8'd21;
// assign numin_2 = 8'd43;
// assign numin_3 = 8'd65;

wire [47:0] num_display;

num_tran num_tran_1(
    // input
    .clk(clk),
    .rst_n(rst_n),
    .numin_1(numin_1),
    .numin_2(numin_2),
    .numin_3(numin_3),
    // output
    .num_display(num_display)
);

tube_ctl tube_ctl_1(
    // input
    .clk(clk),
    .rst_n(rst_n),
    .num_display(num_display),
    // output
    .SEL(SEL),
    .DIG(DIG)
);

endmodule
