49
Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC-AMS [email protected] [email protected] BMAS 2010 - September 24, 2010 – San Jose

Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. [email protected] [email protected]

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing

using SystemC/SystemC-AMS

[email protected]

[email protected]

BMAS 2010 - September 24, 2010 – San Jose

Page 2: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 2

Presentation Overview

-Part I: System analysis • Lab-on-Chip for DNA analysis• DNA Amplification by PCR (Polymerase Chain reaction)• Separation by CE (Capillary electrophoresis) • Optical detection and shaping• Multicore processing and PCR control• Multithreaded Smith-Waterman

Part II: Mathematical Modeling (lightspeed presentation)

Part III: Hardware/Software Modeling• SystemC-AMS for AMS parts• SystemC + SOCLIB for digital parts• Embedded application: Multithreaded Smith-Waterman

Results & conclusion

Page 3: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 3

Part I: System Analysis

Page 4: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 4

Part I: System Analysis

Page 5: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 5

Part I: System Analysis

Amplification by Polymerase Chain Reaction (PCR)

Page 6: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 6

Part I: System Analysis

Polymerase Chain Reaction

- DNA template- Two primers- Taq polymerase- dNTPs

Principal reagents:

1. Denaturation phase2. Annealing phase3. Extension phase

Each PCR Cycle is composed of three phases:

Page 7: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 7

Part I: System Analysis

Polymerase Chain Reaction

1. Denaturation

95°C

dsDNA

ssDNA1

ssDNA1

Page 8: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 8

Part I: System Analysis

Polymerase Chain Reaction

2. Annealing

37°C

Page 9: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 9

Part I: System Analysis

Polymerase Chain Reaction

3. Extension

72°CdsDNA1dsDNA2

Page 10: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 10

Part I: System Analysis

Polymerase Chain Reaction

Cycles of PCR

Page 11: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 11

Part I: System Analysis

2. Sequencing and detection of DNA

Page 12: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 12

Part I: System Analysis

2. Sequencing and detection of DNA

Sanger method

- Use of « ddNTP » chain terminators

Extends the chain terminates the chain

Page 13: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 13

Part I: System Analysis

Sanger method

Page 14: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 14

Part I: System Analysis

Capillary electrophoresis

Page 15: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 15

Part I: System Analysis

Processing and control

Page 16: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 16

Part I: System Analysis

3. Multicore Processing and control

MultiProcessor System on chip (MPSoC):- Control temperature- Control cycle duration- Signal processing- Information processing

- Align DNA sequences- Compare acquired sequence with detected sequences- Search within a database- etc …

Page 17: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 17

Part II: Modeling of PCR

Modeling the denaturation phase

60 seconds at T = 95°C -> Enzyme deactivation

Page 18: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 18

Part II: Modeling of PCR

Modeling of extension phase

The rate of generation of DNA in the first cycle:

CD0 = Initial concentration of target DNA in MCD = Concentration of target ADN after time "t" in M

= Incorporation rate of nucleotides in one DNA strand in the first cycley = Number of nucléotides constituting one target sequence

*1K

Page 19: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 19

Part II: Modeling of PCR

Modeling of extension phase

The amplification rate of DNA in the first cycle is given by:

Page 20: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 20

Part II: Modeling of PCR

Modeling of extension phase

The amplification rate of ADN in the nth cycle is given by:

Exponential growth

Page 21: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 21

Part II: Modeling of PCR

Modeling of PCR

Modeling of extension phase

Enzyme deactivation effect :

quasi-linear growth

Page 22: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 22

Part II: Modeling of Sequencing

Modeling of sanger termination

Probability of termination at base ‘N’:

][][

dNTPddNTPRp Nn =

If sequence begins with A,C,G:

01 Dpd aa =

)1(01 acc pDpd −=)1)(1(01 cagg ppDpd −−=

Page 23: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 23

Part II: Modeling of Sequencing

Modeling of sanger termination

The molar amount terminating at base number ‘i’ :

0][][ DiXid =

D0: inital molar amount, the result of the PCR stage

Page 24: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 24

Part II: Modeling of Sequencing

Modeling of capillary electrophoresis

Assuming that diffusion is the only peak broadening mechanism that is present:Gaussian concentration profile with variance:

mDt22 =σ

D: diffusion coefficienttm: migration time from injection to the detection point

Page 25: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 25

Part II: Modeling of Sequencing

Modeling of capillary electrophoresis

vltm =

Ev eµ=

sm

t wltw

=

Migration time

Velocity

Full width

Page 26: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 26

Modeling of Sequencing

Modeling of optical detection

- Excitation from a source at 488nmfluorescence from labels at: 500, 540, 570, 590 nm

- 4 photodiodes + dichroic filters

- Amplification and filtering

Page 27: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 27

Modeling of Sequencing

Modeling of optical detection

Page 28: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 28

Modeling of Sequencing

Modeling of optical detection

Band pass filters: Fabry-Perot

Page 29: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 29

Part II: Modeling of Sequencing

Modeling of optical detection

Photodiode

inout RPI =Photocurrent

Noise current (not implemented)

BRPIqti darks )(2)(2 +=

BR

TKti BTh

4)(2 =

Page 30: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 30

Part III: Hardware/Software modeling

How to model and simulate multidomain AMS ?– SystemC-AMS

How to model and simulate MPSoC architectures ?

– SystemC + SoCLib library (www.soclib.fr)How to develop massively multithreaded applications on these architectures ?

– Kahn Process Network paradigm and Smith-Waterman DNA sequencing application

Page 31: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 31

AMS & Analog: SystemC-AMS TDF

Developed by Fraunhofer IIS/EAS Dresden, Contribution by TU Vienna Supported by NXP, STMicroelectronics, Bosch, Infineon, ... Supported by OSCI: LRM, User’s Guide available Is a standard Proof of Concept freely available, access via OSCI website

Page 32: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 32

temp Enzyme deact

ctrl_temp0

ctrl_temp1 temp_out temp_in beta_out

RTDtemp_in v_out

comparator

v_in

temp_out0v_ref1

v_ref2

v_ref3

temp_out1

Extension

temp_in

N_outbeta_in

TDF Cluster: PCR part (1)

Page 33: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 33

Extension

temp_in

N_outbeta_in

Sanger

D_out

N_in F_out

count_out

ctrl_valve

CE

A_out

F_in C_out

G_out

D_in

count_in

T_out Detect 500

A_in

C_in

G_in

T_in

Detect 540

A_in

C_in

G_in

T_in

Detect 570

A_in

C_in

G_in

T_in

Detect 590

A_in

C_in

G_in

T_in

V_out

V_out

V_out

V_out

TDF Cluster: Sanger & CE part (2)

Page 34: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 34

Detect 500

A_in

C_in

G_in

T_in

Detect 540

A_in

C_in

G_in

T_in

Detect 570

A_in

C_in

G_in

T_in

Detect 590

A_in

C_in

G_in

T_in

V_out

V_out

V_out

V_out

SAR dig_out

sar_compsar_out

DACdig_in

v_out

cst_vsrcv_out v_ref

compv_m

v_p

TDF Cluster: Optical detection (3)

Page 35: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 35

Digital: SystemC + SocLib Library

National project, ended March 2010 11 Labs, 6 companies LGPL More than 100 BCA and TLM models

– Based on SystemC– Processors, memories, Noc, peripherals– VCI/OCP compliant, interoperable components– Dedicated to MPSoCs, but proven useful for Monoproc systems SocLib Live-CD available on the website

Page 36: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 36

VciMultiTty 2VciTimer 1

VciVgmn

VciXcacheWrapper

Mips32ElIss

VciRam

timerBASE=0xB0200000SIZE=0x00000100

UttyBASE=0xC0200000SIZE=0x00000040

UresetBASE=0xBFC00000SIZE=0x00010000

C

excepBASE=0x80000000SIZE=0x00010000

C

textBASE=0x00400000SIZE=0x00050000

C

dataBASE=0x10000000SIZE=0x00020000

C

0

0VciXcacheWrapper

Mips32ElIss

1VciXcacheWrapper

Mips32ElIss

2VciXcacheWrapper

Mips32ElIss

3

Page 37: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 37

MPSoC generic tile

• PROC (MIPS32)• TDU: Test & Decision Unit• VMU: Voltage Management Unit• LCG: Local Clock Generator• NIC:Network Interface Controller• SA-AS: Synchronous/Async converter

PROC

Local interconnect

NICSA-AS

Computing core VMU

LCG

RAM Periph.

NoCRouter

Page 38: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 38

2D-Mesh shared memory NUMA architecture with NoC

Page 39: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 39

Smith -WatermanSmith-Waterman Algorithm

-Seq1 = X1,…,XM-Seq2 = Y1,…,YNScore Matrix (4X4) for (A,C,T,G) ‘F’ Matrix (MXN)

Page 40: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 40

Smith-Waterman

Page 41: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 41

Smith Waterman

Optimal Alignment

C A T T G C - - T G

Sequence alignment

Page 42: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 42

Part III: KPN-like multithreaded embedded application

PROD MAXI

CRUNCH0

CRUNCH1

CRUNCH2

(i,j) (i,j,len)

Page 43: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 43

Results

Thermo-cycling

Page 44: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 44

PCR ResultsDeactivation of polymerase enzyme

Page 45: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 45

PCR ResultsAmplification ratio of DNA

Page 46: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 46

Modeling of SequencingModeling of capillary electrophoresis

Page 47: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 47

Modeling of SequencingModeling of optical detection

Page 48: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 48

Modeling of SequencingOutput of detection stage:

Page 49: Modeling and Simulation of a Manycore PCR-CE Lab on Chip for DNA Sequencing using SystemC/SystemC -AMS · 2011. 7. 5. · using SystemC/SystemC -AMS. amr.habib@soc.lip6.fr francois.pecheux@lip6.fr

Page 49

Success story !– Complex application captured with SystemC AMS extensions– Chemical kinetic reactions, electrophoresis, optics, ADC, DAC in

AMS-TDF (digitally assisted)– 4 minutes to simulate PCR-CE and 1000 samples comparisonChanging MPSoC operating frequency during simulation !Wish: deactivate TDF cluster simulation once DNA

sequence acquired to speed up simulationLiving project, architecture exploration, design refinement

Conclusion