data/full_repos/permissive/136584400/lab03-Simple_sequential_circuit/sources/lab3-6.v
1: b"%Error: data/full_repos/permissive/136584400/lab03-Simple_sequential_circuit/sources/lab3-6.v:21: syntax error, unexpected '(', expecting IDENTIFIER\n    decoder_3to8(.in(num[2:0]), .out(AN[7:0]));\n                 ^\n%Error: Exiting due to 1 error(s)\n"
module dynamic_scan(clk, SEG, AN);
    input clk;
    output [7:0] SEG;
    output [7:0] AN;
    wire clk_tmp;
    wire [2:0] num;
    wire [3:0] code;

    divider d1(.clk(clk), .clk_N(clk_tmp));
    counter c1(.clk(clk_tmp), .out(num[2:0]));
    decoder_3to8(.in(num[2:0]), .out(AN[7:0]));
    rom8x4(.addr(num[2:0]), .data(code[3:0]));
    decoder_4to16(.in(code[3:0]), .out(SEG[7:0]));

endmodule
module dynamic_scan(clk, SEG, AN);

    input clk;
    output [7:0] SEG;
    output [7:0] AN;
    wire clk_tmp;
    wire [2:0] num;
    wire [3:0] code;

    divider d1(.clk(clk), .clk_N(clk_tmp));
    counter c1(.clk(clk_tmp), .out(num[2:0]));
    decoder_3to8(.in(num[2:0]), .out(AN[7:0]));
    rom8x4(.addr(num[2:0]), .data(code[3:0]));
    decoder_4to16(.in(code[3:0]), .out(SEG[7:0]));

endmodule