data/full_repos/permissive/507564148/code/LED/top.v
1: b'%Error: data/full_repos/permissive/507564148/code/LED/top.v:23: syntax error, unexpected new-then-paren\nrandout randout_top(.clk(clk),.rst_n(~rst),.new(start),.rand_num(rand_num));\n                                               ^\n%Error: Exiting due to 1 error(s)\n'
module top (
    input clk,
    input start,
    input act,
    input rst,
    input mode,
    input finish_test,





    output [6:0] LED4,
    output reg[7:0] row,
    output reg[7:0] col,
    output reg[2:0] RGB
);
wire [12:0] rand_num;
wire get_rand;
wire [15:0] act_time;
wire out_time;
wire [2:0] state;
randout randout_top(.clk(clk),.rst_n(~rst),.new(start),.rand_num(rand_num));
count2rand count2rand_top(.clk(clk),.rst_n(~rst),.start(start),.rand_num(rand_num),.get_rand(get_rand));
count count_top(.clk(clk),.rst_n(~rst),.pause(act),.start(get_rand),.Q(act_time),.out_time(out_time));
fsm fsm_top(.clk(clk),.rst_n(~rst),.option({start,act,get_rand,out_time}),.mode(mode),.finish_test(finish_test),.act_time(act_time),.max_result(max_result),.state(state));
seven_led seven_led_top(.state(state),.act_time(act_time),.max_result(max_result),.clk(clk),.LED4(LED4));
LED LED_top(.clk(clk),.rst_n(~rst),.state(state),.row(row),.col(col),.RGB(RGB));
endmodule
module top (
    input clk,
    input start,
    input act,
    input rst,
    input mode,
    input finish_test,





    output [6:0] LED4,
    output reg[7:0] row,
    output reg[7:0] col,
    output reg[2:0] RGB
);

wire [12:0] rand_num;
wire get_rand;
wire [15:0] act_time;
wire out_time;
wire [2:0] state;
randout randout_top(.clk(clk),.rst_n(~rst),.new(start),.rand_num(rand_num));
count2rand count2rand_top(.clk(clk),.rst_n(~rst),.start(start),.rand_num(rand_num),.get_rand(get_rand));
count count_top(.clk(clk),.rst_n(~rst),.pause(act),.start(get_rand),.Q(act_time),.out_time(out_time));
fsm fsm_top(.clk(clk),.rst_n(~rst),.option({start,act,get_rand,out_time}),.mode(mode),.finish_test(finish_test),.act_time(act_time),.max_result(max_result),.state(state));
seven_led seven_led_top(.state(state),.act_time(act_time),.max_result(max_result),.clk(clk),.LED4(LED4));
LED LED_top(.clk(clk),.rst_n(~rst),.state(state),.row(row),.col(col),.RGB(RGB));
endmodule