基于FPGA的交通灯设计(英文)

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

IEEEInternationalWorkshoponIntelligentDataAcquisitionandAdvancedComputingSystems:TechnologyandApplications6-8September2007,Dortmund,Germany1-4244-1348-6/07/$25.00©2007IEEE100FPGA-BasedAdvancedRealTrafficLightControllerSystemDesignWMEl-Medany1,MRHussain21)CEDepartment,ITCollege,UOB,32038Bahrainwmelmedany@itc.uob.bh,~mbgedwme/2)GEOMATEC,SpatialInformationResearch,Manama,Bahrain,marwan@geomatec.com.Abstract–Trafficlightcontrollerestablishesasetofrulesandinstructionsthatdrivers,pilots,trainengineers,andshipcaptainsrelyontoavoidcollisionsandotherhazards.Trafficcontrolsystemsincludesigns,lightsandotherdevicesthatcommunicatespecificdirections,warnings,orrequirements.Trafficlightcontroller(TLC)hasbeenimplementedusingmicrocontroller,FPGA,andASICdesign.FPGAhasmanyadvantagesovermicrocontroller,someoftheseadvantagesare;thespeed,numberofinput/outputportsandperformancewhichareallveryimportantinTLCdesign,atthesametimeASICdesignismoreexpensivethanFPGA.MostoftheTLCsimplementedonFPGAaresimpleonesthathavebeenimplementedasexamplesofFSM.ThispaperconcernedwithanFPGAdesignimplementationofalowcost24-houradvancedtrafficlightcontrollersystemthatwasbuiltasatermprojectofaVLSIdesignsubjectusingVHDL.TheimplementedtrafficlightisoneoftherealandcomplextrafficlightsinKingdomofBahrain,forfourroadsandmotorwaywithsensorsandcamera.ThesystemhasbeensuccessfullytestedandimplementedinhardwareusingXilinxSpartan3FPGA.ThesystemhasmanyadvantagesovertheexcitingTLC.Keywords-FPGA,Xilinx,VHDL,VLSI.I.INTRODUCTIONFieldprogrammablegatearrays(FPGAs)areextensivelyusedinrapidprototypingandverificationofaconceptualdesignandalsousedinelectronicsystemswhenthemask-productionofacustomICbecomesprohibitivelyexpensiveduetothesmallquantity[1].ManysystemdesignsthatusedtobebuiltincustomsiliconVLSI[2]arenowimplementedinFieldProgrammableGateArrays.ThisisbecauseofthehighcostofbuildingamaskproductionofacustomVLSIespeciallyforsmallquantity[3].Inthispaperthemainobjectivewastodesigna24-houretrafficlightcontrollertomanagethetrafficmovementoffourroadsatthesametime,andachievemaximumutilizationforthefourroads.Optimaltrafficlightcontrolisamulti-agentdecisionproblem,ourdesignlearnstheexpectedwaitingtimesofcarsforredandgreenlightsateachintersection[4,5,and6].Intherushhours,whenpeoplegoingtoworkorcomingbacktohomethetrafficlightsofallroadsarecontrolledwithfixedtime.However,inthenormaltime,themainroadsarecontrolledwithafixedtimewhilethenarrowroadsarecontrolledautonomouslybysensors[6,7,and8].Thematerialofthisarticleisarrangedasfollows:insectionII,wedescribethestructureofthefourroadsthathasbeenusedasanexampleforthedesignandthetimeallocatedforeachtrafficlight.DescriptionofthehardwaredesignandVHDLmodelisthesubjectofsectionIII.InsectionIVweexplainthestatediagramofthedesign.ThesimulationofthedesignandFPGAimplementationisstudiedinsectionV.FinallywediscussourresultsinsectionVI.II.STRUCTUREOFTHEFOURROADSTHATAREGOINGTOBECONTROLLEDFig.1showsthestructureofthefourroadsthathasbeenusedasapracticalexampletodesignourcontrollerwhicharelocatedinManamacity,KingdomofBahrain.Inthisstructurewehavesixtraffics,T1,T2,T3,T4,T5,andT6.ThemainroadsareT1andT3.ThereisalsoonecamerawhichisplacedonlyfortrafficT1.Thetimingforthetraffic’sisworkingasfollows:-T1andT3aregreenfor12seconds.-Othertrafficsaregreenfor6seconds.-Thegreentoyellowsignineachtrafficlighthas2secondsdelay.-Thereis2secondsafetyduringtransitionfromonetrafficlighttoanother(orfromoneroadtoanother).-Theredtoredyellowsignineachtrafficlighthas1seconddelay.Assumingthattheroadsarecrowded(allsensorsequaltologic‘1’);thenormalscenarioofthetrafficisasfollows:-ThesystemstartswithT1andT2havingthegreensign.-T1andT2willstaygreen,aftersixsecondsT2willturntoredandT3willbegreen.-AftertheremainingtimeforT1finishes,T1willturntoredandT4willbegreen.-AfterthetimeforT3andT4finishes,bothreturntored.ThenitistheturnforT5tobegreenforsixseconds.-FinallyT6willbecomegreenafterT5finishes.Table1showatimingstatesforthesixtrafficlightsforthegreenandredlightsonly.101Fig.1.TheFourRoadsStructure.Whatifsomeoftheroadsareempty(theirsensorsarelogic‘0’):Therearesomeprocedurestobedonebeforeturningfromonetrafficlighttoanother,andtheyareasfollows:-Ifthetimerofthecurrenttrafficfinishesandstilltherearecarsonitsroad,thetrafficwillnotgetredunlessitmakessurethatthereisanothertrafficwithsensor=logic‘1’.-Ifthereisnoothertraffichavingcars,sothecurrenttrafficwillstaygreenunlessoneofthetwoconditionsappears:1.Acarcameinothertrafficlight(sensorwillbelogic‘1’).Herethecurrenttrafficwillchangedtoredandtheothertrafficlightwillbegreen.2.Ifthesensorofthecurrenttrafficbecomelogic‘0’(meansthecarsinitsroadfinished)andstillothersensorsareequaltologic‘0’;HerethecurrenttrafficwillbeturnedtoredandT1andT3willbegreenasweassumedtheyarethetwomaintraffics(mainroads).Thesestepsaretheconditionsthathastobecheckedbeforeswitchingbetweenanytwotrafficsforthewholetimes(24-hours).ImportantNotes:-WhenT1isGreenT4,T5andT6shouldbeRed(T2orT3canbeGreenatthesametime).-WhenT2isGreenT4,T3,T5andT6shouldbeRed(T1isGreentoo).-WhenT3

1 / 6
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功