Altium教程FPGAHardwareD軟件設(shè)計E0(精)_第1頁
Altium教程FPGAHardwareD軟件設(shè)計E0(精)_第2頁
免費預(yù)覽已結(jié)束,剩余10頁可下載查看

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、FPGA Hardware LED Chaser 10 Module 軟件設(shè)計 第一部分原理圖1.1 FPGA_LED_Chasser_IO_Module.SchDocVCCU3TCK TMS TDI TDO TRSTJT AG JT AG JT AG JT AGJT AGJT AG.Q15.OD15.0L CE CCLR SLI LEFT SRI U4SR16CLEDB Q15.0D15.0L CE CCLR SLI LEFT SRI U5SR16CLEDB Q15.0D15.0L CE CCLR SLI LEFT SRI U7A7.0SR16CLEDB Q15.OD15.0L CE CCL

2、RSLI LEFT SRI U8SR16CLEDB Q15.OQ31.16Q63.48Q47.32D15.0D31.16D63.48D47.32VCCVCC VCC VCC Q16Q32Q48Q64Q15.0Q16.31Q48.63Q47.32Q71Q15Q31Q47 1 Ch x 8 Bit Digital IOAIN7.OAOUT7.0CTRL IOB_1X8AOB15.OA1D15.OD31.16D63.48D47.32A15.OB15.OY15.0S0U9M16_B2B1A15.OB15.OY15.OSOU1OM16_B2B1A15.OB15.OY15.OSOU11M16_B2B1A1

3、5.OY15.0S0U6M16_B2B1GNDGNDGNDA2U120R3S LOADDIRMANUALQ7.0D7.0L CE CCLR SLI LEFT SRI U1SR8CLEDBQ71.64D71.64VCC Q0Q63GNDGNDGNDU13GNDGND D71.64A7.OB7.O丫7.0SOU2M8_B2B1GNDDIVN. = 1000000C D QU19FDU17C D QU18FDVCC SHIFTGNDVCCDigital I/O LED ChaserU14/ NCNTL31.OLOADU15CDIVN_32/ 5U16CDIV54 Ch x 16 Bit Digita

4、l IO AIN15.0BIN15.0CIN15.0DIN15.0AOUT15.0BOUT15.0COUT15.0DOUT15.0DIGIOIOB_4X16CLK_BRD PXXTEST_BUTTONPXX JTAG_NEXUS_TMSPXXJTAG_NEXUS_TCK PXX JTAG_NEXUS_TDO PXX JTAG_NEXUS_TDI PXX Thisexample impleme nts a 72 bit shift register to chase LEDs around a 4x16 Digital I/Omodule.The speed is k ept down to 1

5、0Hz to allow the I/O module to k eep up.You will n eed to up the refresh speed on the I/O module to 100ms (Opti ons butt onon the in strume nt.The 1x8 module con trols extra fun cti ons.Bit 0 (toggle high the low will load the chaser with the sett in gs en tered into the4x16.The 4x16 in puts are use

6、d to display the state of the chaser - this is the display.The 4x16 output bits are used to con trol the value that will be loaded into the chaserwhe n operat ing in Ma nual ModePower- On LoadHolds Load high for two shift clock cycles to force a load on startup.Relies on the factthat the DFFs will c

7、ome up with zero loaded.Load from three sources.1. Startup Load2. Test butt on Load3. Toggle Bit 0 of CTRL from in strume nt display.1.2FPGA_LED_Chasser.PAS. ProcedureUnRouteNet(Board : IPCB_Board; Net : IPCB_Net;VarIterator : IPCB_GroupIterator;Prim : IPCB_Prim;KillList : TList;i : In teger;Beg inI

8、terator := Net.Grouplterator_Create;Prim := Iterator.FirstPCBObject;KillList := TList.Create;While Prim NIl DoBeg inIf Prim.I sFreePrimitive The nKillList.Add(Prim;Prim := Iterator.NextPCBObject;End;For i := 0 TO KillList.Cou nt - 1 DoBoard. RemovePCBObject(KillListi;KillList.Free;End; . ProcedureUn

9、 routeClass(Board : IPCB_BOARD; NetClass : IPCB_OBjectClass;VarIterator : IPCB_Boardlterator;net : IPCB_Net;Beg inIterator := Board.BoardIterator_Create;lterator.SetState_FilterAII;lterator.AddFilter_ObjectSet(MkSet(eNetObject;Net := Iterator.FirstPCBObject;While Net NIl DoBeg inIf NetClass.lsMember

10、(Net.Name The nUn routeNet(Board, Net;Net := Iterator.NextPCBObject;En d;Board.ViewMa nager_FullUpdate;End; . ProcedureUn RouteSelectedClasses(Board : I_PCBBoard;Vari : In teger;Beg inFor i := 0 To GetNetClass.Classes.ltems.Count - 1 DoIf GetNetClass.Classes.Selectedi The nUnrouteClass(Board, GetNet

11、Class.Classes.ltems.Objectsi;End; . Fun cti onChooseNetCLass(Dummy : In teger = 0 : Boolea n;Beg inResult := GetNetClass.showmodal = mrOK;En d;. ProcedureFillNetClassList(Board : IPCB_Board;VarIterator : IPCB_Boardlterator;c : IPCB_ObjectClass;Beg inIterator := Board.BoardIterator_Create;lterator.Se

12、tState_FilterAII;lterator.AddFilter_ObjectSet(MkSet(eClassObject;c := Iterator.FirstPCBObject;While c NIl DoBeg inIf c.MemberKi nd = eClassMemberKi nd_Net The nGetNetClass.Classes.ltems.AddObject(c.Name, C;c := Iterator.NextPCBObject;En d;End; . ProcedureUn RouteNetClass;VarClassToU nroute : IPCB_OBjectClass;Board : IPCB_Board;Beg inPcbserver.PreProcess;TryBoard := PCBServer.GetCurre ntPCBBoard;If Not Assig ned(Board The nBeg inShowMessage(The Curre nt Docume nt is not a Protel PCB Docume nt.;Exit;En d;Fil

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論