SlideShare ist ein Scribd-Unternehmen logo
1 von 7
MINI-PROJECT Dual Processor Computation


Author: University of Hertfordshire
Date created:
Date revised: 2009


Abstract
The following resources come from the 2009/10 BEng in Digital Systems and Computer Engineering (course number
2ELE0065) from the University of Hertfordshire. All the mini projects are designed as level two modules of the
undergraduate programmes.

The objectives of this module are to demonstrate, within an embedded development environment:
   • Processor – to – processor communication
   • Multiple processors to perform one computation task using parallel processing
This project requires the establishment of a communication protocol between two 68000-based microcomputer systems.
Using ‘C’, students will write software to control all aspects of complex data transfer system, demonstrating knowledge of
handshaking, transmission protocols, transmission overhead, bandwidth, memory addressing. Students will then
demonstrate and analyse parallel processing of a mathematical problem using two processors. This project requires two
students working as a team.




                                                                          Contents
MINI-PROJECT Dual Processor Computation....................................................................................................1
Section 1. Product Introduction............................................................................................................................2
Section 2. Project Day 1.......................................................................................................................................5
Section 3. Project Day 2.......................................................................................................................................6
Credits...................................................................................................................................................................7




In addition to the resources found below there are supporting documents which should be used in combination with this
resource. Please see:
Mini Projects - Introductory presentation.
Mini Projects - E-Log.
Mini Projects - Staff & Student Guide.
Mini Projects - Standard Grading Criteria.
Mini Projects - Reflection.

You will also need the ‘Mini Project- Dual Processor Computation’ presentation.




                            © University of Hertfordshire 2009 This work is licensed under a Creative Commons Attribution 2.0 License.
Mini Project Dual Processor Computation




Section 1. Product Introduction.
Learning Outcomes assessed (as taken from the DMD)
All Learning Outcomes specified in the Definitive Module Documentation are assessed as part of this miniproject. The
specific Learning Outcomes are:
Knowledge and Understanding
Be able to:
    •   Identify and enhance knowledge gained from other studies in areas relevant to the project topic selected.

Skills and Attributes
Be able to:
    •   Use relevant measurement instruments to analyse a defined electronic engineering problem relevant to digital
        systems or embedded computer systems.
    •   Synthesise a solution to a defined electronic engineering problem relevant to digital systems or embedded
        computer systems.
    •   Take, and analyse appropriately, test results from that solution.
Carry out a simple critical evaluation of the results taken.

Project Title: Dual Processor Computation

3Project Objectives: (technical, specific to this project)
Demonstrate, within an embedded development environment:
   • Processor – to – processor communication
   • Multiple processors to perform one computation task using parallel processing

Project Summary: (50 words max)
This project requires the establishment of a communication protocol between two 68000-based microcomputer systems.
Using ‘C’, students will write software to control all aspects of complex data transfer system, demonstrating knowledge of
handshaking, transmission protocols, transmission overhead, bandwidth, memory addressing. Students will then
demonstrate and analyse parallel processing of a mathematical problem using two processors. This project requires two
students working as a team.
Introductory Lecture (2hrs) Content:
    •   General Problem area: data transfer protocols, effect of parallelization
    •   Hardware to be used
    •   Relevant ‘C’ code
    •   Topics for students to revise: handshaking, state diagrams


Preparation Session (3hrs):
This session will act primarily as a refresher about:

    •   68000 system familiarization such as the programming and development environment
    •   Debugging (breakpoints, single stepping, watch windows, …)

    •   Transfer protocol development and

    •   State diagram workshop




                                              Page 2 of 7
Mini Project Dual Processor Computation




Day 1
Expected Outcomes for the day:
The student will
   • Design a system that will send one byte from Master to Slave with proper handshaking.
   • Modify the single byte communication to multiple bytes from the Masters to the Slave’s.
   • Develop a method to determine the bandwidth of the system.

Assessment criteria:
A proper wiring interconnection diagram with clear signal labels; a method to carry out synchronised communication
between two microprocessors; a methodical design/build/test methodology; well-structured and legible code including
effective breakdown into functions; a method to measure the bandwidth.

Key Tasks:
    •   Specify a resource map and sketch a wiring diagram to show how the two microprocessor systems to be
        connected.
    •   Using a structure chart, design a program to perform one byte transmit/receive.
    •   Modify the design to repeat multiple bytes transmit/receive.
    •   Develop a method to measure the communication bandwidth.
    •   Develop a team work strategy: handshaking scheme development and verifying each other’s code.

Day 2
Expected Outcomes for the day:
The student will build on the experience on Day 1 to establish the basic requirements for engaging two processors in
solving a simultaneous equation
        z = x*y
x = func_sum_to_10;
y= func_sum_square_to_50.

The student will investigate the relative benefits of all dual processor computation scenarios for the calculation of z
using the single processor computation time as a reference. The students will need to support their argument with state
time diagrams based upon experimental results.

Assessment criteria;
A methodical design/build/test sequence; well-structured and legible code including effective breakdown into functions;
single processor computation of z as a benchmark; two scenarios of parallel computation of z using two processors; a
state-time diagram to summarise the efficiency of the proposed solution.

Key Tasks:
    1. Single processor computation of z, and measure the computation time;
    2. Two processors configured as scenario 1 (Proc1 calculate x and z, and Proc2 calculate y in parallel);
    3. Two processors configured as scenario 2 (Proc1 calculate x, and Proc2 calculate y and z in parallel);
    4. Compare the efficiency of computation.

Facilitator guidance (key ideas to draw out from students):
Day 1: Handshaking and synchronization as well as bandwidth measurement
Day 2: Timesaving through parallelism


Section 5. Required Resources: Laboratory Facilities and Teaching Support.
Laboratory Resources: LD403.
PC Workstations with development environment for 68000 Flight boards.
Main 68000 development boards, buffered I/O boards, expansion board, oscilloscope (1 complete set per student)



                                            Page 3 of 7
Mini Project Dual Processor Computation




Teaching Resources:
Briefing packs for the preparatory session and both practical days.




                                            Page 4 of 7
Mini Project Dual Processor Computation




Section 2. Project Day 1
Write functions to perform each of the tasks listed below. You should demonstrate each task as you complete it. The
code that you submit at the end of the day should include all of these functions.

    1. Produce a resource map and make correct connection of hardware.

    2. Perform one byte transmission and receive between two processors on each side (Master and Slave). Read the
       result using LED display or the debugger.

    3. Extend the single byte transmission and receive, perform multiple bytes transmission and receive mechanism
       between Master and Slave processors.

    4. Design, develop and test a measurement scheme that measures the communication bandwidth. (Output a
       signal to indicate whether the test was successful.)




                                           Page 5 of 7
Mini Project Dual Processor Computation




Section 3. Project Day 2
Perform each of the tasks listed below. You should demonstrate each task as you complete it. The code that you submit
at the end of the day should include all of the changes described below.

   1. Catch up any part left from Day 1 task.

   2. Your code should include a "delay function" to add necessary delay to maintain program running properly.

   3. Design and implement a probe function to explore running time of a program/function.

   4. Perform experiments to solve the simultaneous equation using single processor and measure the time. Display
      the result.

   5. Establish the scenario 1 as described in the lecture session. Perform the simultaneous equation computation
      using two processors and measure the time. Display the result.

   6. Modify your code so that scenario 2 can be created. Perform the simultaneous equation computation using two
      processors and measure the time. Display the result.

   7. Using time-state diagram, make the analysis of efficiency dual processor computation.

                                                        Equation:
                                                       Z = (Y+10)/x
                                                X = sum_between_1_and_10
                                                Y = sum_between_1_and_20




                                          Page 6 of 7
Mini Project Dual Processor Computation




Credits
This resource was created by the University of Hertfordshire and released as an open educational resource through the
Open Engineering Resources project of the HE Academy Engineering Subject Centre. The Open Engineering
Resources project was funded by HEFCE and part of the JISC/HE Academy UKOER programme.




© University of Hertfordshire 2009




This work is licensed under a Creative Commons Attribution 2.0 License.

The name of the University of Hertfordshire, UH and the UH logo are the name and registered marks of the University of Hertfordshire. To the fullest
extent permitted by law the University of Hertfordshire reserves all its rights in its name and marks which may not be used except with its written
permission.

The JISC logo is licensed under the terms of the Creative Commons Attribution-Non-Commercial-No Derivative Works 2.0 UK: England & Wales
Licence. All reproductions must comply with the terms of that licence.

The HEA logo is owned by the Higher Education Academy Limited may be freely distributed and copied for educational purposes only, provided that
appropriate acknowledgement is given to the Higher Education Academy as the copyright holder and original publisher.




                                                       Page 7 of 7

Weitere ähnliche Inhalte

Was ist angesagt? (6)

Pregel reading circle
Pregel reading circlePregel reading circle
Pregel reading circle
 
Paper id 25201467
Paper id 25201467Paper id 25201467
Paper id 25201467
 
ACTRESS: Domain-Specific Modeling of Self-Adaptive Software Architectures
ACTRESS: Domain-Specific Modeling of Self-Adaptive Software ArchitecturesACTRESS: Domain-Specific Modeling of Self-Adaptive Software Architectures
ACTRESS: Domain-Specific Modeling of Self-Adaptive Software Architectures
 
Software effort estimation through clustering techniques of RBFN network
Software effort estimation through clustering techniques of RBFN networkSoftware effort estimation through clustering techniques of RBFN network
Software effort estimation through clustering techniques of RBFN network
 
IMQA Poster
IMQA PosterIMQA Poster
IMQA Poster
 
Apache Hadoop India Summit 2011 Keynote talk "Programming Abstractions for Sm...
Apache Hadoop India Summit 2011 Keynote talk "Programming Abstractions for Sm...Apache Hadoop India Summit 2011 Keynote talk "Programming Abstractions for Sm...
Apache Hadoop India Summit 2011 Keynote talk "Programming Abstractions for Sm...
 

Ähnlich wie Mini Project- Dual Processor Computation

WindowManagementFramework
WindowManagementFrameworkWindowManagementFramework
WindowManagementFramework
Sachin Jain
 
Week 4 Assignment - Software Development PlanScenario-Your team has be.docx
Week 4 Assignment - Software Development PlanScenario-Your team has be.docxWeek 4 Assignment - Software Development PlanScenario-Your team has be.docx
Week 4 Assignment - Software Development PlanScenario-Your team has be.docx
estefana2345678
 

Ähnlich wie Mini Project- Dual Processor Computation (20)

Mini Project- USB Temperature Logging
Mini Project- USB Temperature LoggingMini Project- USB Temperature Logging
Mini Project- USB Temperature Logging
 
Mini Project- Stepper Motor Control
Mini Project- Stepper Motor ControlMini Project- Stepper Motor Control
Mini Project- Stepper Motor Control
 
SOFTWARE BASED CALCULATION OF CAPACITY OUTAGE OF GENERATING UNITS
SOFTWARE BASED CALCULATION OF CAPACITY OUTAGE OF GENERATING UNITSSOFTWARE BASED CALCULATION OF CAPACITY OUTAGE OF GENERATING UNITS
SOFTWARE BASED CALCULATION OF CAPACITY OUTAGE OF GENERATING UNITS
 
3wis_2.pdf
3wis_2.pdf3wis_2.pdf
3wis_2.pdf
 
Mini Project- Automated Selection Machine
Mini Project- Automated Selection MachineMini Project- Automated Selection Machine
Mini Project- Automated Selection Machine
 
Mini Project- USB Temperature Logging
Mini Project- USB Temperature LoggingMini Project- USB Temperature Logging
Mini Project- USB Temperature Logging
 
CAD theory presentation.pptx .
CAD theory presentation.pptx                .CAD theory presentation.pptx                .
CAD theory presentation.pptx .
 
WindowManagementFramework
WindowManagementFrameworkWindowManagementFramework
WindowManagementFramework
 
Vedic Calculator
Vedic CalculatorVedic Calculator
Vedic Calculator
 
Mini Project- Implementation & Evaluation Of Wireless La Ns
Mini Project- Implementation & Evaluation Of Wireless La NsMini Project- Implementation & Evaluation Of Wireless La Ns
Mini Project- Implementation & Evaluation Of Wireless La Ns
 
Softwareproject planning
Softwareproject planningSoftwareproject planning
Softwareproject planning
 
Mini Project- Torque Control of a DC Motor
Mini Project- Torque Control of a DC MotorMini Project- Torque Control of a DC Motor
Mini Project- Torque Control of a DC Motor
 
GCF
GCFGCF
GCF
 
IGCSE & O Level Computer Workbook for P2 by Inqilab Patel
IGCSE & O Level Computer Workbook for P2 by Inqilab PatelIGCSE & O Level Computer Workbook for P2 by Inqilab Patel
IGCSE & O Level Computer Workbook for P2 by Inqilab Patel
 
Mini Project- Virtual Network Project
Mini Project- Virtual Network ProjectMini Project- Virtual Network Project
Mini Project- Virtual Network Project
 
Mulvery Detail - English
Mulvery Detail - EnglishMulvery Detail - English
Mulvery Detail - English
 
library get way management system
library get way management systemlibrary get way management system
library get way management system
 
Hb3412981311
Hb3412981311Hb3412981311
Hb3412981311
 
IRJET - Code Compiler Shell
IRJET -  	  Code Compiler ShellIRJET -  	  Code Compiler Shell
IRJET - Code Compiler Shell
 
Week 4 Assignment - Software Development PlanScenario-Your team has be.docx
Week 4 Assignment - Software Development PlanScenario-Your team has be.docxWeek 4 Assignment - Software Development PlanScenario-Your team has be.docx
Week 4 Assignment - Software Development PlanScenario-Your team has be.docx
 

Mehr von University of Hertfordshire, School of Electronic Communications and Electrical Engineering

Mehr von University of Hertfordshire, School of Electronic Communications and Electrical Engineering (20)

Mini Project- Home Automation
Mini Project- Home AutomationMini Project- Home Automation
Mini Project- Home Automation
 
Mini Project- Soundscape for Games Consoles
Mini Project-  Soundscape for Games ConsolesMini Project-  Soundscape for Games Consoles
Mini Project- Soundscape for Games Consoles
 
Mini Project- Face Recognition
Mini Project- Face RecognitionMini Project- Face Recognition
Mini Project- Face Recognition
 
Mini Project- Games Development For The Desktop Pc And Dedicated Gaming Machine
Mini Project- Games Development For The Desktop Pc And Dedicated Gaming MachineMini Project- Games Development For The Desktop Pc And Dedicated Gaming Machine
Mini Project- Games Development For The Desktop Pc And Dedicated Gaming Machine
 
Mini Project- Audio Enhancement
Mini Project- Audio EnhancementMini Project- Audio Enhancement
Mini Project- Audio Enhancement
 
Mini Project- Multimedia Montage
Mini Project- Multimedia MontageMini Project- Multimedia Montage
Mini Project- Multimedia Montage
 
Mini Project- Audio Enhancement
Mini Project-  Audio EnhancementMini Project-  Audio Enhancement
Mini Project- Audio Enhancement
 
Mini Project- Multimedia Montage
Mini Project-  Multimedia MontageMini Project-  Multimedia Montage
Mini Project- Multimedia Montage
 
Mini Project- Internet Security Mechanisms
Mini Project- Internet Security MechanismsMini Project- Internet Security Mechanisms
Mini Project- Internet Security Mechanisms
 
Mini Project Internet Security Mechanisms
Mini Project  Internet Security MechanismsMini Project  Internet Security Mechanisms
Mini Project Internet Security Mechanisms
 
Mini Project- Personal Multimedia Portfolio
Mini Project- Personal Multimedia PortfolioMini Project- Personal Multimedia Portfolio
Mini Project- Personal Multimedia Portfolio
 
Mini Projects- Personal Multimedia Portfolio
Mini Projects- Personal Multimedia PortfolioMini Projects- Personal Multimedia Portfolio
Mini Projects- Personal Multimedia Portfolio
 
Mini Project- Credit The Edit
Mini Project- Credit The EditMini Project- Credit The Edit
Mini Project- Credit The Edit
 
Mini Project- Credit The Edit
Mini Project- Credit The EditMini Project- Credit The Edit
Mini Project- Credit The Edit
 
Mini Project- Digital Video Editing
Mini Project- Digital Video EditingMini Project- Digital Video Editing
Mini Project- Digital Video Editing
 
Mini Project- Digital Video Editing
Mini Project- Digital Video EditingMini Project- Digital Video Editing
Mini Project- Digital Video Editing
 
Mini Project- Digital Audio Editing
Mini Project- Digital Audio EditingMini Project- Digital Audio Editing
Mini Project- Digital Audio Editing
 
Mini Project- Shopping Cart Development
Mini Project- Shopping Cart DevelopmentMini Project- Shopping Cart Development
Mini Project- Shopping Cart Development
 
Mini Project- Shopping Cart Development
Mini Project- Shopping Cart DevelopmentMini Project- Shopping Cart Development
Mini Project- Shopping Cart Development
 
Mini Project- Game Hardware Development
Mini Project- Game Hardware DevelopmentMini Project- Game Hardware Development
Mini Project- Game Hardware Development
 

Kürzlich hochgeladen

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Kürzlich hochgeladen (20)

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

Mini Project- Dual Processor Computation

  • 1. MINI-PROJECT Dual Processor Computation Author: University of Hertfordshire Date created: Date revised: 2009 Abstract The following resources come from the 2009/10 BEng in Digital Systems and Computer Engineering (course number 2ELE0065) from the University of Hertfordshire. All the mini projects are designed as level two modules of the undergraduate programmes. The objectives of this module are to demonstrate, within an embedded development environment: • Processor – to – processor communication • Multiple processors to perform one computation task using parallel processing This project requires the establishment of a communication protocol between two 68000-based microcomputer systems. Using ‘C’, students will write software to control all aspects of complex data transfer system, demonstrating knowledge of handshaking, transmission protocols, transmission overhead, bandwidth, memory addressing. Students will then demonstrate and analyse parallel processing of a mathematical problem using two processors. This project requires two students working as a team. Contents MINI-PROJECT Dual Processor Computation....................................................................................................1 Section 1. Product Introduction............................................................................................................................2 Section 2. Project Day 1.......................................................................................................................................5 Section 3. Project Day 2.......................................................................................................................................6 Credits...................................................................................................................................................................7 In addition to the resources found below there are supporting documents which should be used in combination with this resource. Please see: Mini Projects - Introductory presentation. Mini Projects - E-Log. Mini Projects - Staff & Student Guide. Mini Projects - Standard Grading Criteria. Mini Projects - Reflection. You will also need the ‘Mini Project- Dual Processor Computation’ presentation. © University of Hertfordshire 2009 This work is licensed under a Creative Commons Attribution 2.0 License.
  • 2. Mini Project Dual Processor Computation Section 1. Product Introduction. Learning Outcomes assessed (as taken from the DMD) All Learning Outcomes specified in the Definitive Module Documentation are assessed as part of this miniproject. The specific Learning Outcomes are: Knowledge and Understanding Be able to: • Identify and enhance knowledge gained from other studies in areas relevant to the project topic selected. Skills and Attributes Be able to: • Use relevant measurement instruments to analyse a defined electronic engineering problem relevant to digital systems or embedded computer systems. • Synthesise a solution to a defined electronic engineering problem relevant to digital systems or embedded computer systems. • Take, and analyse appropriately, test results from that solution. Carry out a simple critical evaluation of the results taken. Project Title: Dual Processor Computation 3Project Objectives: (technical, specific to this project) Demonstrate, within an embedded development environment: • Processor – to – processor communication • Multiple processors to perform one computation task using parallel processing Project Summary: (50 words max) This project requires the establishment of a communication protocol between two 68000-based microcomputer systems. Using ‘C’, students will write software to control all aspects of complex data transfer system, demonstrating knowledge of handshaking, transmission protocols, transmission overhead, bandwidth, memory addressing. Students will then demonstrate and analyse parallel processing of a mathematical problem using two processors. This project requires two students working as a team. Introductory Lecture (2hrs) Content: • General Problem area: data transfer protocols, effect of parallelization • Hardware to be used • Relevant ‘C’ code • Topics for students to revise: handshaking, state diagrams Preparation Session (3hrs): This session will act primarily as a refresher about: • 68000 system familiarization such as the programming and development environment • Debugging (breakpoints, single stepping, watch windows, …) • Transfer protocol development and • State diagram workshop Page 2 of 7
  • 3. Mini Project Dual Processor Computation Day 1 Expected Outcomes for the day: The student will • Design a system that will send one byte from Master to Slave with proper handshaking. • Modify the single byte communication to multiple bytes from the Masters to the Slave’s. • Develop a method to determine the bandwidth of the system. Assessment criteria: A proper wiring interconnection diagram with clear signal labels; a method to carry out synchronised communication between two microprocessors; a methodical design/build/test methodology; well-structured and legible code including effective breakdown into functions; a method to measure the bandwidth. Key Tasks: • Specify a resource map and sketch a wiring diagram to show how the two microprocessor systems to be connected. • Using a structure chart, design a program to perform one byte transmit/receive. • Modify the design to repeat multiple bytes transmit/receive. • Develop a method to measure the communication bandwidth. • Develop a team work strategy: handshaking scheme development and verifying each other’s code. Day 2 Expected Outcomes for the day: The student will build on the experience on Day 1 to establish the basic requirements for engaging two processors in solving a simultaneous equation z = x*y x = func_sum_to_10; y= func_sum_square_to_50. The student will investigate the relative benefits of all dual processor computation scenarios for the calculation of z using the single processor computation time as a reference. The students will need to support their argument with state time diagrams based upon experimental results. Assessment criteria; A methodical design/build/test sequence; well-structured and legible code including effective breakdown into functions; single processor computation of z as a benchmark; two scenarios of parallel computation of z using two processors; a state-time diagram to summarise the efficiency of the proposed solution. Key Tasks: 1. Single processor computation of z, and measure the computation time; 2. Two processors configured as scenario 1 (Proc1 calculate x and z, and Proc2 calculate y in parallel); 3. Two processors configured as scenario 2 (Proc1 calculate x, and Proc2 calculate y and z in parallel); 4. Compare the efficiency of computation. Facilitator guidance (key ideas to draw out from students): Day 1: Handshaking and synchronization as well as bandwidth measurement Day 2: Timesaving through parallelism Section 5. Required Resources: Laboratory Facilities and Teaching Support. Laboratory Resources: LD403. PC Workstations with development environment for 68000 Flight boards. Main 68000 development boards, buffered I/O boards, expansion board, oscilloscope (1 complete set per student) Page 3 of 7
  • 4. Mini Project Dual Processor Computation Teaching Resources: Briefing packs for the preparatory session and both practical days. Page 4 of 7
  • 5. Mini Project Dual Processor Computation Section 2. Project Day 1 Write functions to perform each of the tasks listed below. You should demonstrate each task as you complete it. The code that you submit at the end of the day should include all of these functions. 1. Produce a resource map and make correct connection of hardware. 2. Perform one byte transmission and receive between two processors on each side (Master and Slave). Read the result using LED display or the debugger. 3. Extend the single byte transmission and receive, perform multiple bytes transmission and receive mechanism between Master and Slave processors. 4. Design, develop and test a measurement scheme that measures the communication bandwidth. (Output a signal to indicate whether the test was successful.) Page 5 of 7
  • 6. Mini Project Dual Processor Computation Section 3. Project Day 2 Perform each of the tasks listed below. You should demonstrate each task as you complete it. The code that you submit at the end of the day should include all of the changes described below. 1. Catch up any part left from Day 1 task. 2. Your code should include a "delay function" to add necessary delay to maintain program running properly. 3. Design and implement a probe function to explore running time of a program/function. 4. Perform experiments to solve the simultaneous equation using single processor and measure the time. Display the result. 5. Establish the scenario 1 as described in the lecture session. Perform the simultaneous equation computation using two processors and measure the time. Display the result. 6. Modify your code so that scenario 2 can be created. Perform the simultaneous equation computation using two processors and measure the time. Display the result. 7. Using time-state diagram, make the analysis of efficiency dual processor computation. Equation: Z = (Y+10)/x X = sum_between_1_and_10 Y = sum_between_1_and_20 Page 6 of 7
  • 7. Mini Project Dual Processor Computation Credits This resource was created by the University of Hertfordshire and released as an open educational resource through the Open Engineering Resources project of the HE Academy Engineering Subject Centre. The Open Engineering Resources project was funded by HEFCE and part of the JISC/HE Academy UKOER programme. © University of Hertfordshire 2009 This work is licensed under a Creative Commons Attribution 2.0 License. The name of the University of Hertfordshire, UH and the UH logo are the name and registered marks of the University of Hertfordshire. To the fullest extent permitted by law the University of Hertfordshire reserves all its rights in its name and marks which may not be used except with its written permission. The JISC logo is licensed under the terms of the Creative Commons Attribution-Non-Commercial-No Derivative Works 2.0 UK: England & Wales Licence. All reproductions must comply with the terms of that licence. The HEA logo is owned by the Higher Education Academy Limited may be freely distributed and copied for educational purposes only, provided that appropriate acknowledgement is given to the Higher Education Academy as the copyright holder and original publisher. Page 7 of 7