data/full_repos/permissive/507564148/code/expand/top.v
1: b'%Error: data/full_repos/permissive/507564148/code/expand/top.v:19: 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] LED1,
    output [6:0] LED2,
    output [6:0] LED3,
    output [6:0] LED4
);
wire [12:0] rand_num;
wire get_rand;
wire [15:0] act_time;
wire [15:0] max_result;
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),.LED1(LED1),.LED2(LED2),.LED3(LED3),.LED4(LED4));
endmodule
module top (
    input clk,
    input start,
    input act,
    input rst,
    input mode,
    input finish_test,
    output [6:0] LED1,
    output [6:0] LED2,
    output [6:0] LED3,
    output [6:0] LED4
);

wire [12:0] rand_num;
wire get_rand;
wire [15:0] act_time;
wire [15:0] max_result;
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),.LED1(LED1),.LED2(LED2),.LED3(LED3),.LED4(LED4));
endmodule