module date_main(
	day_EN,
	date_disp_clk,
	Date_Set_EN,
	Date_EN,
	SW1,
	SW2,
	day0,
	day1,
	Disp_select_date,
	month0,
	month1
);

input	day_EN;
input	date_disp_clk;
input	Date_Set_EN;
input	Date_EN;
input	SW1;
input	SW2;
output	[3:0] day0;
output	[3:0] day1;
output	[5:0] Disp_select_date;
output	[3:0] month0;
output	[3:0] month1;

wire	SYNTHESIZED_WIRE_0;
wire	[3:0] SYNTHESIZED_WIRE_1;
wire	[3:0] SYNTHESIZED_WIRE_2;
wire	[3:0] SYNTHESIZED_WIRE_3;
wire	[3:0] SYNTHESIZED_WIRE_4;
wire	[1:0] SYNTHESIZED_WIRE_5;
wire	[3:0] SYNTHESIZED_WIRE_6;
wire	[3:0] SYNTHESIZED_WIRE_7;
wire	[3:0] SYNTHESIZED_WIRE_8;
wire	[3:0] SYNTHESIZED_WIRE_9;





autodate	b2v_inst(.EN1(day_EN),
.EN2(Date_Set_EN),.EO1(SYNTHESIZED_WIRE_0),.day0(SYNTHESIZED_WIRE_1),.day1(SYNTHESIZED_WIRE_2),.month0(SYNTHESIZED_WIRE_3),.month1(SYNTHESIZED_WIRE_4));

datecontrol	b2v_inst1(.clk(date_disp_clk),
.Date_EN(Date_EN),.EN1(SYNTHESIZED_WIRE_0),.EN2(Date_Set_EN),.auto_day0(SYNTHESIZED_WIRE_1),.auto_day1(SYNTHESIZED_WIRE_2),.auto_month0(SYNTHESIZED_WIRE_3),.auto_month1(SYNTHESIZED_WIRE_4),.disp_drive(SYNTHESIZED_WIRE_5),.set_day0(SYNTHESIZED_WIRE_6),.set_day1(SYNTHESIZED_WIRE_7),.set_month0(SYNTHESIZED_WIRE_8),.set_month1(SYNTHESIZED_WIRE_9),.day0(day0),.day1(day1),.disp_select(Disp_select_date),.month0(month0),.month1(month1));

setdate	b2v_inst2(.EN2(Date_Set_EN),
.SW1(SW1),.SW2(SW2),.day_set0(SYNTHESIZED_WIRE_6),.day_set1(SYNTHESIZED_WIRE_7),.disp_drive(SYNTHESIZED_WIRE_5),.month_set0(SYNTHESIZED_WIRE_8),.month_set1(SYNTHESIZED_WIRE_9));


endmodule
