Electrocardiogram (ECG) application operation – Part A
description
Transcript of Electrocardiogram (ECG) application operation – Part A
![Page 1: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/1.jpg)
Electrocardiogram (ECG) application operation – Part A
Performed By: Ran GelerMor Levy
Instructor: Moshe Porian
Project Duration: 2 Semesters
Spring 2012
MidTerm Presentation
![Page 2: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/2.jpg)
ContentsIntroTop ArchitectureOverviewData FlowComponentsSimulationsProblems in developing processConclusionsWhat’s nextSchedule
![Page 3: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/3.jpg)
IntroThe 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
![Page 4: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/4.jpg)
Medical TermsECGLead
◦Bipolar leads ◦Unipolar leads ◦Precordial Leads
![Page 5: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/5.jpg)
Project Overview
![Page 6: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/6.jpg)
Project GoalsPortable ECG device based on
FPGAIntegrating Multi Platforms
elements◦ECG DB with FPGA
Interactive GUI with debugger abilities
Methodic project
![Page 7: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/7.jpg)
Top Architecture
![Page 8: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/8.jpg)
OverviewAcquaintances with other
projects components◦SPI, Wishbone, RX/TX path, FIFO,
FlashImplemented ECG controller
◦ECG FSM◦Assimilation of SPI core & FIFO
Examination of the Implemented components
![Page 9: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/9.jpg)
Top Architecture – Data Flow
![Page 10: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/10.jpg)
Top Architecture – FrequencyFrequency requirements for modules
FPGA:
Main frequency: 100MHz
Rx / Tx Modules
@ frequency of 115,200Hz
ADS1928R:
Main frequency: 2.048MHz
SPI-Data Out freq’: >110KHz
MATLAB GUI:Rx / Tx Via UART interface
@frequency of
115,200Hz
Flash Memory:
Main frequency: 100MHz
![Page 11: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/11.jpg)
Core microarchitecture
512Bytes
Data Rate: 100MHz
Data Rate :
>110KHz
![Page 12: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/12.jpg)
Core Architecture ECG FSMFIFOCommand & Aux RegsWishbone Master & SlaveSPI Core
![Page 13: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/13.jpg)
ECG FSMControls the flow of data between
the host and the DBThree Main chain of actions:
◦Read Data◦Read Registers◦Write Registers
![Page 14: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/14.jpg)
ECG FSM - Graph
![Page 15: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/15.jpg)
FIFO at ECG Controller
1st Command
2nd 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:
![Page 16: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/16.jpg)
SPIThe SPI Interface frequency:
At 24bit resolution per 8 Electrodes and 500 Samples per Sec:
Active at low. i.e. CS = ‘0’
( 4 ) ( 24)SCLK DR CLK BITS CHANNELSt t t N N
110clockt KHz
1/DRt Sample Rate
![Page 17: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/17.jpg)
Flash Component
FLASH
Flash Controller FlashFSM
RAM
Reset en
WBS
Flash Component
256Byte
![Page 18: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/18.jpg)
Flash Component - FlashOne sample(24bit res. per 8 Electrodes)=
27Byte.Lets assume sample rate of 500
SPSFlash size = 4MBTherefore we can sample for
5min.
![Page 19: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/19.jpg)
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
![Page 20: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/20.jpg)
ADS1298R ECG DBTexas Instruments CardArrived to the High Speed Digital
Systems Lab
![Page 21: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/21.jpg)
ADS1298R ECG DBFuture acquisitions of probes and
electrodesConnection of the DB
to the FPGA
![Page 22: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/22.jpg)
Test MethodologiesOperation of the ECG Controller:
◦Checking that states change are at time◦Checking control signals & data signals
between units◦Non existing commands
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.
![Page 23: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/23.jpg)
ECG Controller TB Data FlowWe have implemented a special closed
component for Testing.
![Page 24: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/24.jpg)
ADS1298R ECG DB
![Page 25: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/25.jpg)
Simulations – Read modeECG Controller Unit actionsReading samples from DB –
RDATAC command
25Bytes Bytes 15
SPI Received data
![Page 26: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/26.jpg)
Simulations – Read registers
FSM St.
SPI MOSI
SPI MISO
FIFO DIN FIFO DOUT
• Read n nnnn registers starting at address r rrrr (001r rrrr, 000n nnnn)
• RReg cmd(0x2C): read 5 register from address 12.
![Page 27: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/27.jpg)
Simulations – Read registersWishbone protocol
BUS Req.
Send data
END trans.
![Page 28: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/28.jpg)
Simulations – Write registers
FSM St.
SPI MOSI
• Write n nnnn registers starting at address r rrrr (001r rrrr, 000n nnnn)
• WReg cmd(0x49): write 5 register from address 9
![Page 29: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/29.jpg)
Simulations – Write registersReceived Data at Remote SPI
Slave
SPI MOSI
SPI Data out
![Page 30: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/30.jpg)
Simulations - DBEntering Standby & then
Wakeup
Standby 0x04 Wakeup 0x02
Return to idle
• Wake-up from standby mode (0x02).• Enter standby mode (0x04).
![Page 31: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/31.jpg)
Problems in developing processLack of VHDL writing techniques
Understanding imported components
Absences of decisiveness on one developing method
![Page 32: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/32.jpg)
ConclusionsWe learned a lot about the
developing process & the importance of good planning a head
![Page 33: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/33.jpg)
What’s NextCombining RX\TX path, ECG
controller and Flash component into Main VHDL component
Connecting the DB to the FPGABuilding test environment for
testing the Data flow from the electrodes throw the DB & FPGA to the MATLAB
Building the GUI
![Page 34: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/34.jpg)
Schedule – Semester A remain work
Further simulation and final code release
Synthesis and P&R by Quartus
Semester A -Final Presentation
6.1
13.1
20.1
![Page 35: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/35.jpg)
Schedule – Semester B
Ti ADS1928R DB and DE2 Board connection
Acquisition of electrodes
Building GUI using Matlab
Test
&
Debug
3w
3w
2w
![Page 36: Electrocardiogram (ECG) application operation – Part A](https://reader035.fdocuments.us/reader035/viewer/2022081420/56816301550346895dd377af/html5/thumbnails/36.jpg)
Schedule – Semester B Cont.
Proj
ect
book
co
mpl
eti
on
Semester B -Final Presentation
2w
1w