Presentation is loading. Please wait.

Presentation is loading. Please wait.

Electrocardiogram (ECG) application operation – Part B Performed By: Ran Geler Mor Levy Instructor:Moshe Porian Project Duration: 2 Semesters Spring 2012.

Similar presentations


Presentation on theme: "Electrocardiogram (ECG) application operation – Part B Performed By: Ran Geler Mor Levy Instructor:Moshe Porian Project Duration: 2 Semesters Spring 2012."— Presentation transcript:

1 Electrocardiogram (ECG) application operation – Part B Performed By: Ran Geler Mor Levy Instructor:Moshe Porian Project Duration: 2 Semesters Spring 2012 Final Presentation

2 Contents Introduction Overview Top Architecture Components Data Flow Simulations and Debug Performance GUI Problems in developing process Conclusions

3 Introduction The heart is a muscular organ that beats in rhythm to pump blood through the body By analyzing the heart behavior and especially the electrical impulses we can help identify heart diseases and special circumstance that require close monitoring

4 Medical Terms ECG Lead ◦ Bipolar leads ◦ Unipolar leads ◦ Precordial Leads

5 Project Overview Project focus

6 Project Goals Design and implement a communication interface between a PC to an ECG board using a FPGA. Implement a simulation component to PCB board behavior for tests. Learn how to integrate Multi Platforms elements ◦ ECG DB with FPGA Build an interactive GUI with debugger abilities. Methodic project

7 Top Architecture

8 What we have achieved: Implementing ECG controller ◦ ECG FSM ◦ Integration with peripheral components. Examination of the Implemented components ◦ Creating tests bench ◦ Mocking TI DB behavior P & R to projects top architecture by Quartus Adding Flash memory support Implementing a GUI

9 Top Architecture – Data Flow

10 Top Architecture – Frequency Frequency requirements for modules FPGA: Main frequency: 100MHz Rx / Tx Modules @ frequency of 115,200Hz FPGA: Main frequency: 100MHz Rx / Tx Modules @ frequency of 115,200Hz ADS1928R: Main frequency: 2.048MHz SPI-Data Out freq’: >110KHz ADS1928R: Main frequency: 2.048MHz SPI-Data Out freq’: >110KHz MATLAB GUI: Rx / Tx Via UART interface @ frequency of 115,200Hz MATLAB GUI: Rx / Tx Via UART interface @ frequency of 115,200Hz Flash Memory: Main frequency: 100MHz Flash Memory: Main frequency: 100MHz

11 Core microarchitecture 512Bytes Data Rate: 100MHz Data Rate: >110KHz

12 Core Architecture ECG FSM FIFO Command & Aux Regs Wishbone Master & Slave SPI Cores

13 ECG FSM Controls the flow of data between the host and the DB Three Main chain of actions: ◦ Read Data ◦ Read Registers ◦ Write Registers

14 ECG FSM - Graph

15 FIFO at ECG Controller 1 st Command 2 nd Command Additional Data Operation Commands (ex: RDATAC, Rreg, Wreg, Standby, Reset, ect’..) Optional: Second Byte for (Rreg, Wreg) and sample interval for RDATAC command. Data for commands FIFO Size: 512 Bytes. Stores Instruction and Sampled data. Data structure on Instruction case:

16 SPI The SPI Interface frequency: At 24bit resolution per 8 Electrodes and 500 Samples per Sec: Active at low. i.e. CS = ‘0’

17 Flash Component FLASH Flash Controller Flash FSM Flash FSM RAM Reset en WBS Flash Component 256Byte

18 Flash Component - Flash One sample (24bit res. per 8 Electrodes) = 27Byte. Lets assume sample rate of 500 SPS Flash size = 4MB Therefore we can sample for 5min.

19 Flash Component – Flash client Technical Demands: Common FLASH Interface protocol (CFI) Wishbone Interface Performs Read, Write, Reset and Erase transactions Initiative read on power-on Contains a timeout algorithm Generic: adaptable to different FLASH sizes and clock frequencies. BUS Wishbone CFI

20 ADS1298R ECG DB FPGA Architecture design suited to Texas Instruments ADS1298R board. Arrived to the High Speed Digital Systems Lab

21 Test Methodologies Operation of the ECG Controller: ◦ Checking that states change are at time ◦ Checking control signals & data signals between units ◦ Non existing commands ◦ Read\Write data to flash from all components. ◦ Read\Write data from PC to board simulation component (DB Mock). NOTE: When a transaction is executed the wishbone “stall” signal is raised to ‘High’, So other requests will remain pending at the Rx Wishbone Master.

22 ECG Controller TB Data Flow We have implemented a special closed component for Testing.

23 DB Mocking We have implemented a component to imitate the Texas Instruments ADS1298R Chip behavior. The Mocking component is capable of saving 26 configuration registers values. Extracting \ writing data from a sequence of registers in a burst. Simulate a continues samples reading (RDATAC mode).

24 DB mocking The component designed to meet timing constrains of Texas Instruments board. ◦ Instructions and returned data timings. ◦ Continues data samples timing. ◦ Enter to sleep mode \ Wakeup time. The component designed to help on Top architecture Implementation and debug process. The component Interface is as the Texas Instruments boars (SPI).

25 ADS1298R ECG DB

26 Simulations – Read Transaction example Top Architecture Wave. Rx Transaction SPI Flash

27 Simulations – Read Transaction example SPI Transaction

28 Simulations – Read Transaction example Flash transaction

29 Simulations – DB Mock WREG Operation

30 Simulations – RDATAC Transaction example

31 Simulation equipment Programming & Debug gear DE2 - Board Host for Simulations

32 Quartus Simulations Top Arc Synthesis summary

33 Quartus Simulations Max Frequency Architecture clocks

34 GUI Using Matlab 2012a we build a functional GUI Allows control on the DB using the DB registers Enables to communicate directly with the flash Running ECG analyze

35 GUI – General

36

37

38 GUI – DB Registers

39

40

41 GUI – DB Registers reading from file

42 GUI – DB Registers reset

43 GUI – DB Registers setting default values

44 GUI – DB Registers reading from DB

45 GUI – Flash

46

47

48 GUI – Flash loading from file

49 GUI – Flash writing on the flash

50 GUI – Flash reading from the flash

51 GUI – Flash

52 GUI – Flash Flash control

53 GUI – Analyzer

54 GUI – Analyzer – smooth

55 GUI – Analyzer – stairs

56 GUI – Analyzer - stems

57 GUI – Analyzer - Save

58

59 GUI – About

60

61 Problems in developing process Meet timings requirements of the TI Evaluation board. Keep the projects specifications and requirements while adding more logic to the top arch. Debug and testing of the whole implemented logic.

62 Conclusions We learned a lot about the developing process & the importance of good planning a head The importance of working organized How much good documentation of previous project is important

63 Conclusions - continue Conclusions - continue How to build a GUI using Matlab Setting up the Matlab to communicate with outer devices The impotence of good and workable equipment Test each component atomically.

64


Download ppt "Electrocardiogram (ECG) application operation – Part B Performed By: Ran Geler Mor Levy Instructor:Moshe Porian Project Duration: 2 Semesters Spring 2012."

Similar presentations


Ads by Google