// Copyright (C) 1991-2004 Altera Corporation
// Any  megafunction  design,  and related netlist (encrypted  or  decrypted),
// support information,  device programming or simulation file,  and any other
// associated  documentation or information  provided by  Altera  or a partner
// under  Altera's   Megafunction   Partnership   Program  may  be  used  only
// to program  PLD  devices (but not masked  PLD  devices) from  Altera.   Any
// other  use  of such  megafunction  design,  netlist,  support  information,
// device programming or simulation file,  or any other  related documentation
// or information  is prohibited  for  any  other purpose,  including, but not
// limited to  modification,  reverse engineering,  de-compiling, or use  with
// any other  silicon devices,  unless such use is  explicitly  licensed under
// a separate agreement with  Altera  or a megafunction partner.  Title to the
// intellectual property,  including patents,  copyrights,  trademarks,  trade
// secrets,  or maskworks,  embodied in any such megafunction design, netlist,
// support  information,  device programming or simulation file,  or any other
// related documentation or information provided by  Altera  or a megafunction
// partner, remains with Altera, the megafunction partner, or their respective
// licensors. No other licenses, including any licenses needed under any third
// party's intellectual property, are provided herein.

module Slave_Control_Main(
	Reset,
	En,
	Up_Request,
	Down_Request,
	Clock_1Hz,
	Now_Direction,
	Now_Floor,
	Now_Floor_Disp_Select,
	Direction_Disp_Row1,
	Direction_Disp_Row2,
	Now_Floor_Disp_Data,
	Slave_Floor
);

input	Reset;
input	En;
input	Up_Request;
input	Down_Request;
input	Clock_1Hz;
input	[1:0] Now_Direction;
input	[3:0] Now_Floor;
output	Now_Floor_Disp_Select;
output	[6:0] Direction_Disp_Row1;
output	[4:0] Direction_Disp_Row2;
output	[6:0] Now_Floor_Disp_Data;
output	[4:0] Slave_Floor;






Slave_Floor_Select	b2v_inst(.Reset(Reset),
.En(En),.Up_Request(Up_Request),.Down_Request(Down_Request),.Slave_Floor(Slave_Floor));

Now_Floor_Disp	b2v_inst1(.Reset(Reset),
.En(En),.Now_Floor(Now_Floor),.Now_Floor_Disp_Select(Now_Floor_Disp_Select),.Now_Floor_Disp_Data(Now_Floor_Disp_Data));

Now_Direction_Disp	b2v_inst2(.Reset(Reset),
.En(En),.Clock_1KHz(Clock_1Hz),.Now_Direction(Now_Direction),.Direction_Disp_Row1(Direction_Disp_Row1),.Direction_Disp_Row2(Direction_Disp_Row2));


endmodule
