Presentation is loading. Please wait.

Presentation is loading. Please wait.

CDFG 2012-04-12 謝政宏. 2 PP-Cloud void RGB_Y(I_Frame, O_Frame){ int y; for(int i=1; i<64; i++){ y = 0.257*a + 0.504*b + 0.098*c + 16; write(y) to O_Frame;

Similar presentations


Presentation on theme: "CDFG 2012-04-12 謝政宏. 2 PP-Cloud void RGB_Y(I_Frame, O_Frame){ int y; for(int i=1; i<64; i++){ y = 0.257*a + 0.504*b + 0.098*c + 16; write(y) to O_Frame;"— Presentation transcript:

1 CDFG 2012-04-12 謝政宏

2 2 PP-Cloud void RGB_Y(I_Frame, O_Frame){ int y; for(int i=1; i<64; i++){ y = 0.257*a + 0.504*b + 0.098*c + 16; write(y) to O_Frame; } O01: i=1 O02: if(i>=64)goto O15 O03: a=I_P() O04: b=I_P() O05: c=I_P() O06: t 1 =0.257*a O07: t 2 =0.504*b O08: t 3 =0.098*c O09: t 4 =t 1 +t 2 O10: t 5 =t 3 +16 O11: y=t 4 +t 5 O12: O_P()=y O13: i++ O14: goto O02 O15: nop I_P() 0.257 t1t1 O_P() abc t2t2 t3t3 t4t4 t5t5 y * ++ 0.504 * 0.098 * 16 + ← I_P() ←←← 01 ++ >= 64 ←1 ← i system CDFG

3 3 PP-Cloud I_P() 0.257 t1t1 O_P() abc t2t2 t3t3 t4t4 t5t5 y * ++ 0.504 * 0.098 * 16 + ← I_P() ←←← 01 ++ >= 64 ←1 ← i system Time constraint (C : 6 unit time) (R : 3* 2+)

4 4 PP-Cloud I_P() 0.257 O_P() abc * + + 0.504 * 0.098 * 16 + ← I_P() ←←← 01 ++ >= 64 ←1 ← i system Resource constraint (C : 2* 1+ per unit time) (R : 7 unit time)

5 5 PP-Cloud

6 6 c I_P() 0.257 * + + 0.504 * 0.098 * 16 + + O_P() I_P() ab status o1 o5 o2 o8 o3 o6 o4 v1v2 v3 v4v6 v5 + o6 v7 v8 -64 1 loop body

7 7 PP-Cloud Lifetime of values v1v2v3v4v5v6V7v8 cycle1 cycle2 cycle3 cycle4 cycle5 Lifetime of operations o1o2o3o4o5o6o7o8 cycle1 cycle2 cycle3 cycle4 cycle5 * + * * + + + + + * * mul1 = {o1} mul2 = {o2, o6} add1 = {03, 04, 05, 07, 08} R1 = {v1, v3, v4} R2 = {v2, v6} R3 = {v8} R1 R2 R3

8 8 PP-Cloud 0.2570.504 0 1 0.098 +** R1R2 R3 0 1 sel1 0 10 1 2 3 0 1 sel3sel2 -64116 en3 en1en2 sel5sel4 add1mul2mul1 OP_Y IP_A IP_BIP_C ==0 status datapath

9 9 PP-Cloud datapathcontroller sel1 sel2 sel3 sel4 sel5 en1 en2 en3 clk status rstIP_AIP_BIP_C OP_Yvalid system

10 10 PP-Cloud ps ns sel1sel2sel3sel4sel5en1en2en3 rst=1 or status=1 else state0 state100000000 state0state2000xx000 state0state300100111 state0state41121x100 state0state511310110 state0state1x12xx000 state table state0 state1 state3 state2state4 state5 rst=1 or status=1 sel1=0 sel2=0 sel3=0 sel4=x sel5=x en1=0 en2=0 en3=0 sel1=0 sel2=0 sel3=1 sel4=0 sel5=0 en1=1 en2=1 en3=1 sel1=1 sel2=1 sel3=3 sel4=1 sel5=0 en1=1 en2=1 en3=0 sel1=x sel2=1 sel3=2 sel4=x sel5=x en1=0 en2=0 en3=0 sel1=0 sel2=0 sel3=0 sel4=0 sel5=0 en1=0 en2=0 en3=0 sel1=1 sel2=1 sel3=2 sel4=1 sel5=x en1=1 en2=0 en3=0

11 11 PP-Cloud datapath (1/3)

12 12 PP-Cloud datapath (2/3)

13 13 PP-Cloud datapath (3/3)

14 14 PP-Cloud controller (1/2)

15 15 PP-Cloud controller (2/2)

16 16 PP-Cloud testbench (1/2)

17 17 PP-Cloud testbench (2/2)

18 18 PP-Cloud testbench2 (1/4)

19 19 PP-Cloud testbench2 (2/4)

20 20 PP-Cloud testbench2 (3/4)

21 21 PP-Cloud testbench2 (4/4)

22 22 PP-Cloud pre simulation (1/2)

23 23 PP-Cloud pre simulation (2/2)

24 24 PP-Cloud system

25 25 PP-Cloud controller

26 26 PP-Cloud datapath

27 27 PP-Cloud datapath (zoom in)

28 28 PP-Cloud system (synthesis)

29 29 PP-Cloud post simulation (1/3)

30 30 PP-Cloud post simulation (2/3)

31 31 PP-Cloud post simulation (3/3)

32 32 PP-Cloud


Download ppt "CDFG 2012-04-12 謝政宏. 2 PP-Cloud void RGB_Y(I_Frame, O_Frame){ int y; for(int i=1; i<64; i++){ y = 0.257*a + 0.504*b + 0.098*c + 16; write(y) to O_Frame;"

Similar presentations


Ads by Google