Enhanced Tdma Based High Speed Bus Arbitrarion: Pankaj Dobwal (Mtvlsi 2011 20) Harsh Vishakarma (Mtvlsi 2011 11
Enhanced Tdma Based High Speed Bus Arbitrarion: Pankaj Dobwal (Mtvlsi 2011 20) Harsh Vishakarma (Mtvlsi 2011 11
ABV Indian Institute Of Information Technology and Management, Gwalior, India (An Autonomous Institute Of Govt. Of India)
Table of contents
Table of contents
1. Introduction 2. Problem Denition 3. Proposed Solution 4. Implementation 5. Mathematical Proof 6. Eciencies comparison 7. Conclusion 8. References
Intoduction
Introduction
Multiprocessor system has an inherent problem of communication overhead between processors. It depends on how we are distributing the program for execution on dierent processors. If we are able to develop a very ecient method for interprocessor communication than we can minimize the communication overhead and so system performance. In general processor communicate through a common shared bus. The bus uses the access policy to provide access on bus for sending and receiving the data/information among the processors. Many multiprocessor uses time division multiple access (TDMA) method for this purpose, In which each processor is allotted a time slot in which that can access to the bus.
Intoduction
Inteoduction cont..
For this purpose system maintains a bus arbitration which includes the information that a particular time which processor is granted the bus. Here the bus arbitration schedule is predetermined and so it is static. We are providing a new concept of TDMA bus access called as Enhanced TDMA bus access method which uses a dynamic bus arbitration schedule Here the bus access policy is TDMA but it is changing according to the current system needs. We are illustrating this using a two processor model which can be scaled as needed. The main benet of this approach is that it will provide performance greater than or equal to existing system using the static arbitration bus schedules.
Problem defination
Problem denation
TDMA-based bus arbitration policy is suitable for modern system-on-chip designs with QoS constraints. This policy is used in many systems now days. The behavior of the bus arbiter is dened by the bus schedule, consisting of sequences of slots. A bus schedule is divided into segments, and each segment consists of a round, that is, a sequence of slots, that is repeated periodically. This is static means that the policy can not be changed during the run time
Problem defination
Figure :
PROPOSED SOLUTION
Proposed solution
We are proposing a solution of the above problems using a dynamic bus arbitration schedule. We are considering the hardware as shown in gure for our illustration purpose. This include1. 2. 3. 4. Two CPU with there private caches A common bus used for interprocessor communication Each processors private memory A shared memory, which uses write through policy to overcome the cache coherence problem.
PROPOSED SOLUTION
2 1
1/2
1 2
1 2
Figure :
PROPOSED SOLUTION
PROPOSED SOLUTION
Implementation
Implementation
For implementing the above explained procedure we are using the same hardware as explained, but with dynamic bus arbitration schedule. Assumption1. 2. 3. 4. Bus slots are of equal length. jobs are distributed evenly to the processors bus id idle if no processor is using the bus swapping is done in linear time as this requires changing of pointers
Implementation
Implementation
Figure :
Mathematical Proof
Mathematical proof
Conventional Method: This not considers the run time behavior of the application. Let
1. N be the number of slots required to complete a task which is evenly distributed to two processors. 2. N1 is the numbers of slots allotted to processor P1 3. N2 is the number of slots allotted to processor P2 4. Ne is the total number of idle slots 5. As the slots may go idleTotal time taken to accomplish a task is N 6. And as this is the static schedule and slots are allotted equally So, 7. N1 = N2 = (N/2 Ne) 8. And N = N1 + N2 + Ne 9. which is the total completion time of task...........................(i)
Mathematical Proof
Proof cont..
Enhanced TDMA bus access method: This considers the run time behavior of the application.
1. Let N is the total number of slots required to accomplish the given task 2. N1 is the total number of slots used by the P1 Processor. 3. N2 is the total number of slots used by the P2 Processor. 4. Ne is the number of idle slots. 5. S is the overhead to swap the pointers So the total execution time in this caseN can be calculated as6. N = N1 + N2 + S + Ne ...........(ii)
Mathematical Proof
Proof cont..
NOTE- Here N1 and N2 are the allotted slots where asN1 and N2 are used slots. For this method to be ecient than N <= N should be hold According to ow chart number of idle slots in second case is denitely<=number of idle slots in case one.
Means Ne <= Ne Overhead in swapping is vary as this is implemented in hardware and requires only changing of pointers. So let assume S to be negligible as compared to time interval of slots. Also asN1 andN2 are used slots so denitely we can conclude that N1 <= N1, and N2 <= N2...................(iii) This is equal if task is doing excessive I/O activity rather then computing. For real time applications equation (iii) holds.
Mathematical Proof
Proof cont..
So nally we can conclude that N1 + N2 + Ne N1 + N2 + Ne. In general these are not equal and so, N1 + N2 + Ne < N1 + N2 + Ne..............................(iv ) Assuming S to be negligible we can say from equation (iv) that N N So, Enhanced TDMA bus access method is more ecient than that of conventional TDMA which uses the static bus arbitration schedule. This completes the proof.
Eciencies comparison
Eciency comparison
Let 1 is the eciency of the conventional TDMA method than 1 = used slots/ total number of slots so, 1 = (N1 + N2) (N1 + N2 + Ne)
(N1 + N2 ) (N1 + N2 + Ne )
Eciencies comparison
Eciency comparison
(N1 + N2 + Ne) = k2 (N1 + N2 + Ne ) , K 2 >= 1 So from equation (v) 1 = 1/2 = k1/k2 2 = (k2/k1) 1 or 2 = k 1 here k >= 1 as N1 + N2 + Ne <= N1 + N2 + Neand also Ne <= Ne . when k = 1than there is no improvement in eciency. k1 (N1 + N2 ) k2 (N1 + N2 + Ne )
Conclusion
Conclusion
The Enhanced TDMA (ETDMA) bus access method is more ecient than conventional TDMA bus access method. This procedure is also scalable and can be generalized for the n processor architectures. Also ETDMA works good if we have the combination of CPU bound job and I/O bound jobs, means it works good in the application has good job mixing. It is guaranteed in this type of system that they will never perform less than that of the conventional TDMA method.
Refrences
Refrences
Shah, H.; Raabe, A.; Knoll, A.; , Priority division: A high-speed shared-memory bus arbitration with bounded latency, Design, Automation Test in Europe Conference Exhibition (DATE), 2011, vol., no., pp.1-4, 14-18 March 2011 Jakob Ros n, Petru Eles, Zebo Peng and Alexandru Andrei,Predictable Worst-Case Execution Time Analysis for Multiprocessor,2011 Sixth IEEE International Symposium on Electronic Design, Test and Application,pp-99-104,2011. Jakob Ros n, Alexandru Andrei, Petru Eles, Zebo Peng Bus Access Optimization for Predictable Implementation of Real-Time Applications on Multiprocessor Systems-on-Chip ,28th IEEE International Real-Time Systems Symposium.pp49- 52,2007. P. Puschner and A. Burns,A Review of Worst-Case Execution-Time Analysis, Real-Time Systems, vol. 2/3, pp.