上海交通大学硕士学位论文基于FPGA的电梯群控系统的分析与设计姓名:杨立森申请学位级别:硕士专业:系统方向指导教师:祝永新20070501–5–1········································································82MicroBlaze····························································································123······················································································154··················································································165··································································································246··································································································277······························································································288(UP,DN,a’)·····················································································319(AWTPCLWPk)··································································3310Matlab·····························································································3511C················································································3712························································································4013VirtexIIPro·········································································41–6–1(UP,DN,a’)·····················································································302(AWT,k)··························································································313(PC,k)······························································································324(LWP,k)···························································································325··········································································································36FPGAMatlabFPGACXilinxVirtexIIProMicroBlazeIPMatlabFPGA–2–DESIGNANDANALYSISOFELEVATORGROUPCONTROLSYSTEMUSINGFPGAABSTRACTTheElevatorGroupControlSystemisasystemthatmanagesthreeormoreelevatorstoincreasetheserviceforpassengersandreducethecostsuchasthepowerconsumptionoftheelevators.NowmostoftheElevatorGroupControlSystemsused‘hallcallassignmentmethod’.Accordingtothismethod,theElevatorGroupControlSystemassignstheelevatorbyevaluatingthetrafficmodetoselectthemostappropriateelevator.Afterevaluatingmostofthecurrentelevatorgroupcontrolalgorithms,weproposeanalgorithmbasedonfuzzyalgorithmsandempiricalparametersinthisthesis.Thisalgorithmwillusedifferentgroupcontrolstrategybyrecognizingdifferentpassengertrafficpatterns.Inthisthesis,wefirstlydescribetheimprovedalgorithmusingMatlab.ThenwevalidatethealgorithmwithmodeleddatainMatlabsimulation.Thesimulationresultshowsthatthisalgorithmismoresuitableforthebuildingwhichhasmorecomplextrafficmodecomparingwiththealgorithmwhichisjustbasedonfuzzyalgorithms.Inthisthesis,wealsoexploretoapplythisalgorithmtoFPGA.ThisalgorithmisdescribedagaininClanguage.TheCprogramislaterconvertedintoabinarycompatiblewithaMicroBlazesoftIPcoreonaXilinxVirtexIIProdevelopmentboard.AfterdebuggingontheFPGAboard,weobtaintheresultthatagreeswiththeearliersimulationresultobtainedwithMatlab.KEYWORDS:ElevatorGroupControlSystem,Fuzzy,EmpiricalParameter,FPGA–7–1.1-OTIS[1]KONE19861990[2,3]6–8–1.2OTIS[44]207070[4,5,6,7][8,10,11,15,18,28,30][9,14,21,22,29,32,33][17,20,31,35][12,13,16,19,23,24,25,26,27,34]11Figure1theprogressofElevatorGroupControlSystem1.2.1/PLC/PLC–9–/PLC1.2.2701.2.3/7080:1.2.4//–10–[37,38]1.3FPGAMicroBlaze1.3.1FPGAFPGAFieldProgrammableGateArrayPALGALEPLDASICFPGALCALogicCellArrayCLBConfigurableLogicBlockIOBInputOutputBlockInterconnect1985Xilinx[39]FPGAFPGA[40]FPGA12009025AlteraXilinxFPGAFPGA–11–FPGAASICFPGAFPGASOPCIPFPGAFPGAØØASICØIPØFPGAFPGAFPGAFPGAFPGAFPGAASIC•IP•FPGAASIC••FPGA•FPGAFPGAFPGA[40,42,43,45]1.3.2MicroBlaze–12–MicroBlazeXilinxFPGAIP[41]RISC323232150MHz125DMIPS2()XilinxEDK()IP2MicroBlaze[39]Figure2MicroBlazeSoftCoreMicroBlazeMicroBlazeØOPB(On-chipPeripheralBus)V2.0ØLMB(LocalMemoryBus)ØFSLØXCL(XilinxCacheLinkXilinx)ØMDM()OPBIBMCoreConnectIPMicroBlazeLMBblockRAMFSLMicroBlazeFIFOIP–13–MicroBlazeXCLMicroBlazeMicroBlazeMicroBlazeFPGA1.4FPGAMatlabFPGACXilinxVirtexIIProMicroBlazeIP–14–2.12.1.1•(Controller)•(Drive)•(Machine)•(SafetyDevices)o(Safety)o(Governor)•(DoorOperationSystem)•(PRS=PositionReferenceSensor)•(Car)•(Loadweighing)•(TOCIBox=TopofCarInspectionBox)•(HallFixture)•(COP=CarOperationPanel)•(ARD=AutomaticRescueDevice&MRD=ManualRescueDevice)•(Counterweight)2.1.2–15–••3[2]3Figure3ElevatorGroupControlSystem2.2–16–4[3]Figure4theexampleofatrafficpatterninabuildingØ(up-peakpattern)Ø(down-peakpattern)Ø(normalpattern)2.3–17–2.3.1Ø(averagewaitingtime)30-60Ø(thelongwaitprobability)160Ø(powerconsumption)[36,46,47]/VVVFØ90–18–ØØØ2.3.2ØØØØ2.3.3Ø–19–ØØØ2.3.4ØØØ2.3.5ØØØ2.4–20–2.4.12.4.22.4.32.4.4–21–2.4.5MatlabXilinxMicroBlazeIPVertaxIIproFPGA–22–3.1,,,t3.23.2.11[48]U={x}AA(x)A(x)[01]A(x)xA–23–2[48]UU={x1x2xn}UAA(xi)i=12nAA=A(x1)/x1+A(x2)/x2++A(xn)/xn·····························(3.1)U={12345}AAA=l/l+1/2+0.8/3+05/4+0.2/53[48]CABABC(x)=MAX[A(x)B(x)]···········