1 / 17

הטכניון - מכון טכנולוגי לישראל המעבדה למערכות ספרתיות מהירות הפקולטה להנדסת חשמל

הטכניון - מכון טכנולוגי לישראל המעבדה למערכות ספרתיות מהירות הפקולטה להנדסת חשמל . דו"ח אמצע. חיבור מצלמת וידאו אל PC דרך DSP. שם הפרויקט :. מגישים : ירובוי בוריס 319445722 דובוסרסקי מקסים 313989386. מנחה : יצקוביץ מיכאל. תאור כללי:.

muriel
Download Presentation

הטכניון - מכון טכנולוגי לישראל המעבדה למערכות ספרתיות מהירות הפקולטה להנדסת חשמל

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. הטכניון - מכון טכנולוגי לישראל המעבדה למערכות ספרתיות מהירות הפקולטה להנדסת חשמל דו"ח אמצע חיבור מצלמת וידאואל PC דרךDSP שם הפרויקט : מגישים : ירובוי בוריס 319445722 דובוסרסקי מקסים 313989386 מנחה : יצקוביץ מיכאל

  2. תאור כללי: • חיבור מצלמת וידאו אל PC בעזרת שתי סביבות פיתוח כדי לאפשר עיבוד ,צפייה ואחסון של אותות וידאו דרך רשת ב-REAL TIME • * סביבת פיתוח אחת מיועדת לקליטה ועיבוד תמונה מהמצלמה. * סביבת פיתוח שניה מיועדת לעיבוד נוסף והעברת מידע ל-PCIbus.

  3. מרכיבי המערכת: • סביבת פיתוח TMS320C6711 Imaging Developer’s Kit לקליטה ועיבוד: • 16 MB of 100MHz SDRAM • DSP 6711withtwo Multichannel buffered Serial Port • VideoCard with decoder • סביבת פיתוח TMS320C6701 Evaluation Module לעיבוד נוסף וחיבור ל-PCI: • 8MB of 100MHz SDRAM • DSP 6711withtwo Multichannel buffered Serial Port • PCI bus

  4. מטרת הפרויקט: • העברת מידע מעובד ע"י DSP של IDK אל PC בעזרתEVM. • בסוף הפרואקט מצפים לקבל את התמונה על מסך ה-PC.

  5. תאור המערכת: IDK EVM Decoder DSP 6711 DSP 6701 PCI controller McBSP PCI Videocamera SDRAM SDRAM

  6. ביצועי המערכת: Maximum transfer rateMcBSP 6711 35.7Mbps 6701 55.56MbpsEDMA 1.2GbpsDMA 2.4Gbps EMIF to PCI 96MbpsPCI 1.03Gbps דרישות ה-BW עבור רזולוציה CIF: 352x288x8 10 frames/sec ~7.73 MbpsNo. of video cameras =2*McBSP / 7.73 Mbps = 71.4 / 7.73 = 9 capture rate מוגבל לערכים כאלה:VCAP_NTSC 640x480 30 fpsVCAP_PAL 768x576 25 fps ביצועי ה-DSP עבור אלגוריטם דחיסה JPEG: 640x480 ( VGA resolution ) ~24 frames/sec מאפייני תמונה לפני עיבוד לדוגמה: 640x480x8 30 frames/sec ~70.3 Mbps מהירות של 2 MCBSP במקביל של IDK ( הכי איטי ) : 2*McBSP 6711 ~71.4 Mbps

  7. חסמים: • קצב העברת מידע ב-MCBSP • אפשרות ל-stalls ב-EDMA,DMA בגלל ה-priorities וב-SDRAM בגלל הגישה של התקנים אחרים.

  8. :SDRAM EDMA McBSP Each event available to the EDMA has its own dedicated channel, and all channels operate simultaneously. This means that all data streams can be handled independently. Since all EDMA channels are always synchronized, there are no special setups required to configure a channel to properly service a particular event.EDMA Channel Synchronization Events: channel 12 XEVT0 McBSP0 transmit event channel 14 XEVT1 McBSP1 transmit event McBSP Channel 12 32 bit of DATA 32 bit of DATA Transmitter SDRAM Channel 14 XEVT Events/Interrupts PARAM EDMA Since an event (XEVT) is generated for every 32 bits as it transmittes, it is necessary to have the EDMA issue the transfer request for each element individually in other words the McBSP is Non-Bursting Peripherals. Because each element is 32 bits maxim the EDMA performs transfer at high priority.

  9. :EDMA ( IDK) Channel 0 params Channel 1 params...Channel 15 params Reload channel 0 params...Reload channel N params Channel 12 Channel 14 Options (OPT) SRC Address (SRC)Array/frame count | Element count DST address (DST) . .Link address(LINK) PARAM EDMA DST McBSP ( DXR Register )SRC 3 Display Buffers in SDRAM By providing a link address an EDMA channel loads a new entry from PaRAM and begins performing the new transfer. In our case we use source address as addresses of 3 display buffers. Therefor we use three linked tables in PARAM. Channel 12 params Reload Channel 12 params Reload Channel 12 params Reload Channel 12 params SRC – BuffX SRC – Buff0 SRC – Buff1 SRC – Buff2 LINK LINK LINK LINK

  10. אופן העברת frame בודד בעזרת 2 MCBSPs במקביל : 32 bits of DATA half image Channel 12(14) params McBSP0 Frame count | Element count half image McBSP1 • כל חצי תמונה מהווה frame עבור EDMA ובכל frame יש:elements = ½*No.lines*linelength[byte]/4 • שמים אל תוך Channel 12(14) params ערכים מתאימים של element counter. למשל עבור 640x480x8 :element counter = ½*No.lines*linelength[byte] / 4 = ½*480*640/4 = 38400

  11. סינכרון בין שני הכרטיסים: • הבעיה היא בכך שאנחנו לא יודעים עם איזה רזולוציה עובדים ולכן גם לא נדע איך לשחזר את התמונה בלי לדעת את הרזולוציה. אז אנו נצתרך לשלוח בהתחלה את המידע. כמו כן אנו נצתרך לדעת מתי IDK מתחיל לשלוח את התמונה. EVM IDK … Res Res Res Don’t care • IDK בהתחלה שולח כל הזמן את החבילות עם רזולוציה עד ש-EVM לא תקבל חבילה אחת ואז ה-EVM שולח בחזרה את החבילה. IDK מקבל אותה ומתחיל לשלוח את התמונות. וכך אנו פותרים את שתי הבעיות בבת אחת – יש מידע כדי לאתחל את רגיסטרי ה-DMA וגם סימן בשביל IDK כדי להתחיל לשלוח תמונות.

  12. :McBSP McBSP EVM IDK McBSP-Slave McBSP-Master 32 bits of DATA Receiver CLKR CLKX Transmitter FSR FSX DR DX FSG CLKG CLKG FSG Sample rate Generator Sample rate Generator CLKS CLKS = CPUclk/2 Events/ Interrupts Events/ Interrupts REVT XEVT To DMA To EDMA FS(R/X) – (receive/transmitt) Frame synchronizationCLK(R/X) – (receive/transmitt) Clock synchronizationREVT -read sync event for DMAXEVT - write sync event for EDMA The maximum bit rate for McBSP-to-McBSP communications applies when the serial port is a master of the clock and frame syncs (with CLKR connected to CLKX, FSR connected to FSX) and the other device the McBSP communicates to is a slave. The maximum bit rate for McBSP-to-McBSP communications is 35.71 Mbps and achieved when the master clock is CPUclk/2.

  13. :McBSP DMA SDRAM McBSP Channel 0 Channel 1 32 bits of DATA Receiver SDRAM Channel 2 32 bit of DATA Channel 3 REVT Events/Interrupts DMA • We choose any free DMA’s channel ( if there aren’t we wait for it ) and configure its control register for appropriate values such source address, destination address, element counters, frame counter and etc. • We receive first frame with information about resolution and configure the DMA’s control registers with appropriate value of element count (38400).

  14. :DMA ( EVM ) • כל MCBSP מתוך שניים מטופל ע"י channel אחד של DMA. • כל channel מטפל כל פעם בחצי תמונה שאותו מעביר MCBSP והחצי הזה מהווה frame עבור channel הזה. • frame הזה מועבר ל-buffer המתאים בתוך SDRAM ( אנו משתמשים באותה שיטה של שלושה buffers כמו ב-IDK ) • אנו משתמשים ב-reload register עבור כל channel כדי לשנות אתdestination address של ה-channel ל-buffer הבא אחרי סיום העברת frame נוכחי • אנו מעדכנים את reload register אחרי שהוא נטען ל-controlregister ע"י כך שבודקים את bit המתאים ב-secondary controlregister המיועד לבדיקת סיום ה-frame.

  15. :SDRAM DMA PCI controller PCI controller PCI bus Data SDRAM FIFO ( 8x32 ) Auxiliary Channel EXT_INT6 Request Interrupt Control DMA • The auxiliary DMA transfers data from the source address ( which in control register ) to the FIFO. Internal data transfer continues until the FIFO is full or until the transfer is completed. Once the FIFO has valid data, a PCI bus request is made and data is transferred from the FIFO to PC slave. DSP master writes execute with zero wait states on all data phases of both single and burst accesses.

  16. :Accomplished • הבנת אופן פעולת סביבות הפיתוח • תכנון ראשוני של בלוקים קטנים של ה-interface הדרוש • סריקת אופן זרימת המידע והדגשת נקודות עקריות

  17. לוח זמנים: • 07.06.02 – השלמת לימוד סביבת Code Composer ו-Chip support library . • 08.06.02 – 17.06.02 – כתיבת ה-interface. • 18.06.02– 22.06.02 – בדיקות, ביצועים ושיפור אפשרי • 22.06.02 – 27.06.02 – כתיבת דו"ח סופי

More Related