Maestrías de la Facultad de Ingeniería · 2022
NoC Performance Estimation tool based on formal models for Scientific Applications
ABSTRACT : As the number of Processing Elements (PEs) present in Systems-on-Chip (SoC) increases, the complexity of the applications running in these systems increases as well. A Network-on-Chip (NoC) provides the communication channels between the PEs, and its proper design is a decisive factor in meeting the performance requirements of an SoC application. However, NoC design is a complex task that involves the exploration of a wide design space involving subjects as NoC topology and application mapping. During the design process, a system architect explores several NoC configurations, trying to find a system prototype that meets the performance requirements of an application. This is done using detailed simulations of the hardware and software of the system (known as cycle-accurate simulations), and in general, they are very time-consuming to run. On the other side of the spectrum, high-level simulations of a system are faster to run, but due to the simplicity of their models, their estimations can be inaccurate. Thus, a tool capable of fast execution and accurate NoC performance estimations is of interest. In this thesis, an NoC performance estimation tool based on a formal model is proposed. This tool uses a recently released state-of-the-art traffic suite to model traffic patterns of several scientific applications running in an NoC. This differentiates the tool proposed in this thesis from similar tools reported in the literature, that can only model synthetic traffic patterns and thus, their performance estimations are of limited use. With the ability of modeling traffic patterns of real applications, the NoC performance estimations made by the proposed tool are similar to the ones obtained from a cycle-accurate simulation. Additionally, it will be shown that the tool proposed in this thesis runs faster than a cycle-accurate simulator, which makes it ideal for design space exploration at the early stages of system development.
Texto completo 126 páginas con texto
Leer la tesis completa Ficha en el repositorio
Contenido
- Acknowledgmentsp. 4
- Introduction and Motivationp. 13
- Problem Descriptionp. 13
- Research Motivationp. 15
- Objectivesp. 15
- Thesis Overviewp. 15
- Thesis contributionsp. 16
- Thesis Outlinep. 16
- SoC and NoC Conceptsp. 17
- Introductionp. 17
- Systems-on-Chip (SoC)p. 18
- Networks-on-Chip (NoC)p. 19
- NoC Topologyp. 20
- NoC Routing Protocolsp. 21
- Deadlock avoidancep. 22
- Flow Controlp. 23
- NoC Performance metricsp. 24
- Design Space Explorationp. 25
- Survey of some DSE Tools and Techniquesp. 27
- CONCLUSIONp. 29
- Review of formal models for Performance Estimation in Networksp. 30
- Introductionp. 17
- Dataflow Graphsp. 31
- Synchronous Dataflow Graphs [74]p. 31
- Review of the state of the art of SDFGsp. 34
- Queueing Theoryp. 35
- Exponential and Poisson Distributionsp. 35
- The Input Processp. 36
- The Output Processp. 36
- Queueing disciplinesp. 36
- Kendall-Lee Notationp. 37
- Little’s Lawp. 37
- Review of the state of the art of Queueing Theoryp. 38
- Network Calculusp. 39
- Input and Output Functionsp. 39
- Backlog and Virtual Delayp. 40
- Arrival Curves and Service Curvesp. 40
- Review of the State of the Art of Network Calculusp. 41
- Comparison of formal models for the Estimation of NoC Performancep. 41
- CONCLUSIONp. 29
- MCLS Traffic Suite and Selection of a Cycle-Accurate Simulator as Validation Toolp. 45
- Introductionp. 17
- Multi-constraint System Level Suite (MCSL)p. 47
- Statistical Traffic Patterns (STP)p. 48
- BookSimp. 50
- Router Microarchitecture Modelingp. 51
- Synthetic Traffic Simulation and Topologies supportedp. 51
- Support, Documentation, and modification possibilitiesp. 51
- Noximp. 51
- Router Modelingp. 53
- Synthetic Traffic Simulation and Topologies supportedp. 53
- Support, documentation, and modification possibilitiesp. 53
- gem5p. 53
- NoC Modelingp. 54
- Garnetp. 54
- Support, documentation, and modification possibilitiesp. 55
- Selection of a cycle-accurate simulatorp. 55
- Details of gem5’s Garnet Modulep. 56
- Brief Introduction to Coherence Protocolsp. 56
- Garnet_standalone Coherence Protocolp. 56
- Garnet_STPp. 60
- MCSL suite in Garnet_STPp. 62
- Implementation of Ring, Flattened Butterfly and Fat-tree topologiesp. 66
- CONCLUSIONp. 29
- NoCSimulator Overviewp. 67
- Introductionp. 17
- NoCSimulator Descriptionp. 68
- NoCSimulator implementation detailsp. 68
- Why use Simpy?p. 68
- Topology modelingp. 69
- uniformTraffic method (synthetic traffic in NoCSimulator)p. 70
- Processing Element (PE) modelingp. 70
- Router modelingp. 72
- MCSL suite in NoCSimulatorp. 78
- Mesh_STP, Ring_STP, FlattenedButterfly_STP and FatTree_STP Classesp. 78
- PE_STP classp. 79
- NoCSimulator Runtime overviewp. 82
- CONCLUSIONp. 29
- Validation Tests for NoCSimulatorp. 85
- Introductionp. 17
- Experimental setupp. 86
- Mesh topologyp. 75
- Synthetic traffic simulationp. 87
- Estimation of NoC performance using statistical traffic patterns of real applicationsp. 88
- Ring Topologyp. 92
- Estimation of NoC performance using statistical traffic patterns of real applicationsp. 93
- Flattened Butterfly Topologyp. 96
- Estimation of NoC performance using statistical traffic patterns of real applicationsp. 98
- Fat-tree Topologyp. 101
- Estimation of performance using statistical traffic patterns of real applicationsp. 102
- NoCSimulator simulation timesp. 105
- Mesh topologyp. 75
- Ring topologyp. 92
- Flattened Butterfly topologyp. 96
- Fat-tree topologyp. 108
- CONCLUSIONp. 29
- Design Space Exploration Exercisep. 110
- Introductionp. 17
- Experimental setupp. 86
- Fpppp applicationp. 111
- Robot applicationp. 112
- Sparse applicationp. 114
- CONCLUSIONp. 29
- Conclusions and Future Workp. 117
- Future workp. 117
- Referencesp. 118
- Table III-1. Comparison of formal models (key points)p. 43
- Table VI-1. Applications Used as Benchmarksp. 86
- Table VI-2. Simulation Parametersp. 87
- Table VI-3. Performance metrics for Fpppp application – Mesh topologyp. 90
- Table VI-4. Performance metrics for Robot application – Mesh topologyp. 91
- Table VI-5. Performance metrics for Sparse application – Mesh topologyp. 91
- Table VI-6. Performance summary - Mesh Topologyp. 92
- Table VI-7. Simulation Parameters - Ring Topologyp. 92
- Table VI-8. Performance metrics for Fpppp application – Ring topologyp. 95
- Table VI-9. Performance metrics for Robot application – Ring topologyp. 95
- Table VI-10. Performance metrics for Sparse application – Ring topologyp. 96
- Table VI-11. Performance summary - Ring topologyp. 96
- Table VI-12. Simulation Parameters - Flattened Butterfly Topologyp. 97
- Table VI-13. Performance metrics for Fpppp application – Flatenned Butterfly topologyp. 99
- Table VI-14. Performance metrics for Robot application – Flattened Butterfly topologyp. 100
- Table VI-15. Performance metrics for Sparse application – Flattened Butterfly topologyp. 100
- Table VI-16. Performance summary - Flattened Butterfly topologyp. 101
- Table VI-17. Simulation Parameters - Fat-tree topologyp. 102
- Table VI-18. Performance metrics for Fppp application - Fat Tree topologyp. 103
- Table VI-19. Performance metrics for Robot application - Fat Tree topologyp. 104
- Table VI-20. Performance metrics for Sparse application - Fat-Tree topologyp. 104
- Table VI-21. Performance summary - Fat-tree topologyp. 105
- Table VII-1. Summary results of the DSE exercisep. 115
- Figure I-1. Design Complexity in Electronic Systems. Taken from [15]p. 13
- Figure I-2. Average simulation time of different cycle-accurate simulators. Taken from [14]p. 14
- Figure I-3. Estimation time vs accuracy of the estimation. Taken from [20]p. 14
- Figure II-1. Example of an SoC. Taken from [32]p. 18
- Figure II-2. A 3-by-3 mesh NoC. Taken from [35]p. 19
- Figure II-3. Components of an NoC. Taken from [40]p. 19
- Figure II-4. Classification of topologies. Taken from [49]p. 20
- Figure II-5. Path diversity in Ring and Mesh topologiesp. 21
- Figure II-6. DOR (X-Y) routing in Mesh topologyp. 22
- Figure II-7. Deadlock mechanism in routing protocolsp. 22
- Figure II-8. A packet and its Flitsp. 23
- Figure II-9. Virtual Channels in a Routerp. 24
- Figure II-10. Latency vs Throughput. Taken from [1]p. 25
- Figure II-11. The main axis of DSE. Taken from [3]p. 26
- Figure II-12. DSE flow diagram for SoC design. Adapted from [64]p. 26
- Figure II-13. Summary of the DSE processp. 28
- Figure III-1. Example of an SDF graph. Taken from [76]p. 31
- Figure III-2. An M/M/1/FIFO/inf/inf queuep. 37
- Figure III-3. Examples of cumulative functions. Taken from [94]p. 39
- Figure III-4. a) An SDFG mapped to a 5-processors SoC. b) Its equivalent IPC graph. Taken from [78]p. 42
- Figure IV-1. Example of a Task Communication Graph (TCG). Taken from [28]p. 47
- Figure IV-2. Applications included in the MSCL tool. Taken from [28]p. 48
- Figure IV-3. NoC topologies supported in the MSCL tool. Taken from [28]p. 48
- Figure IV-4. File format of an STP TCG application. Taken from [104]p. 49
- Figure IV-5. Data Structures of an STP application. Taken from [104]p. 50
- Figure IV-6. Module Hierarchy of BookSim. Taken from [17]p. 51
- Figure IV-7. Simulation flow of Noxim Simulator. Taken from [16]p. 52
- Figure IV-8. Overview of the Ruby memory subsystem. Taken from [114]p. 54
- Figure IV-9. Topologies available in Garnet by default. Taken from [117]p. 55
- Figure IV-10. Hardware layout for Garnet_standalone coherence protocolp. 57
- Figure IV-11. Garnet_standalone coherence state machinep. 58
- Figure IV-12. machine declaration in SLICC. Taken from [122]p. 59
- Figure IV-13. Message buffers declaration in SLICC. Taken from [122]p. 59
- Figure IV-14. State declarations in SLICC. Taken from [122]p. 59
- Figure IV-15. Events declaration in SLICC. Taken from [122]p. 60
- Figure IV-16. Hardware Configuration for Garnet_STP coherence protocolp. 61
- protocolp. 62
- classp. 62
- Figure IV-20. Flow diagram of runScheduledTasks methodp. 63
- protocolp. 65
- Figure IV-22. UML class diagram of SimpleTopology interfacep. 66
- Figure V-1. Network of queues representing a Mesh NoCp. 68
- Figure V-2. Class Diagram of a Topology in NoCSimulatorp. 69
- Figure V-3. UML class diagram of Topology interfacep. 69
- Figure V-4. UML class diagram for PE classp. 71
- Figure V-5. UML class diagram for Router interfacep. 73
- Figure V-6. XY routing in Mesh topologyp. 75
- Figure V-7. Flow diagram of XY routing algorithmp. 76
- Figure V-8. Flow diagram of Dijkstra's shortest-path algorithmp. 77
- Figure V-9. Ring topology and its graph representationp. 78
- Figure V-10. STP classes UML class diagramp. 78
- Figure V-11. PE_STP class diagramp. 79
- Figure V-12. UML class diagram of TasksManager classp. 79
- Figure V-13. Flow diagram of runScheduledTask methodp. 80
- Figure V-14. Source_STP UML class diagramp. 81
- Figure V-15. Sink_STP UML class diagramp. 81
- Figure V-16. The interplay of Source_STP, Sink_STP, and TasksManager classesp. 82
- Figure V-17. NoCSimulator runtime sequence diagramp. 83
- Figure VI-1. Mesh Topology - 3x3 (9 PEs)p. 87
- (16-PEs 4x4)p. 88
- per PEp. 89
- Figure VI-5. Ring Topology (9 PEs)p. 92
- Figure VI-6. Average Latency vs Throughput - Ring Topology (16-PEs)p. 93
- PE – Ring topologyp. 94
- cycles - Ring topologyp. 94
- Figure VI-9. Flattened Butterfly topology (9-PEs 3x3)p. 97
- Figure VI-10. Average Latency vs Throughput - Flattened Butterfly Topology (16-PEs 4x4)p. 98
- per PE – Flattened Butterfly topologyp. 98
- cycles - Flattened Butterfly topologyp. 99
- Figure VI-13. Fat-tree topology (16-PEs)p. 101
- Figure VI-14. Average Latency vs Throughput - Fat-tree Topology (16 PEs)p. 102
- per PE – Fat-tree topologyp. 103
- cycles - Fat-tree topologyp. 103
- Figure VI-17. Normalized simulation time for each benchmark running in a Mesh topologyp. 106
- Figure VI-18. Normalized simulation time for each benchmark running in Ring topologyp. 107
- topologyp. 87
- Figure VI-20. Normalized simulation time for each benchmark running in a Fat-tree topologyp. 109
- throughput B) Normalized throughput per PEp. 111
- B) Normalized Cyclesp. 112
- throughput B) Normalized throughput per PEp. 113
- Normalized Cyclesp. 113
- throughput B) Normalized throughput per PEp. 114
- B) Normalized Cyclesp. 115