data/full_repos/permissive/419538859/lab7/lab7_1dd/lab7_1.v
1: b"%Error: data/full_repos/permissive/419538859/lab7/lab7_1dd/lab7_1.v:18: syntax error, unexpected '(', expecting IDENTIFIER\nfreq_div#(23)(clk, reset, clk_cnt_dn);\n              ^~~\n%Error: data/full_repos/permissive/419538859/lab7/lab7_1dd/lab7_1.v:19: syntax error, unexpected '(', expecting IDENTIFIER\nfreq_div#(25)(clk, reset, clk_yellow);\n              ^~~\n%Error: data/full_repos/permissive/419538859/lab7/lab7_1dd/lab7_1.v:20: syntax error, unexpected '(', expecting IDENTIFIER\nfreq_div#(15)(clk, reset, clk_sel);\n              ^~~\n%Error: data/full_repos/permissive/419538859/lab7/lab7_1dd/lab7_1.v:22: syntax error, unexpected '(', expecting IDENTIFIER\nseg7_select#(2)(clk_sel, reset, seg7_sel);\n                ^~~~~~~\n%Error: data/full_repos/permissive/419538859/lab7/lab7_1dd/lab7_1.v:34: syntax error, unexpected '(', expecting IDENTIFIER\nryg_ctl (clk_1, clk_2, reset, day_night, g1_cnt, g1_en, light_led);\n         ^~~~~\n%Error: Exiting due to 5 error(s)\n"
module 		seg7_select(clk,reset,seg7_sel);

parameter	num_use= 6;
input		clk,reset;
output		[2:0]seg7_sel;
reg			[2:0]seg7_sel;

always@ (posedge clk or posedge reset) 
begin
	if(reset == 1)
		seg7_sel = 3'b101;
	else
		if(seg7_sel == 6 -num_use)
			seg7_sel = 3'b101;
		else
			seg7_sel = seg7_sel-3'b001;
	end
endmodule
module 		seg7_select(clk,reset,seg7_sel);


parameter	num_use= 6;
input		clk,reset;
output		[2:0]seg7_sel;
reg			[2:0]seg7_sel;

always@ (posedge clk or posedge reset) 
begin
	if(reset == 1)
		seg7_sel = 3'b101;
	else
		if(seg7_sel == 6 -num_use)
			seg7_sel = 3'b101;
		else
			seg7_sel = seg7_sel-3'b001;
	end
endmodule