Details

Learning Computer Architecture with Raspberry Pi


Learning Computer Architecture with Raspberry Pi


1. Aufl.

von: Eben Upton, Jeff Duntemann, Ralph Roberts, Tim Mamtora, Ben Everard

20,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 22.08.2016
ISBN/EAN: 9781119183945
Sprache: englisch
Anzahl Seiten: 528

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<p><b>Use your Raspberry Pi to get smart about computing fundamentals</b></p> <p>In the 1980s, the tech revolution was kickstarted by a flood of relatively inexpensive, highly programmable computers like the Commodore. Now, a second revolution in computing is beginning with the Raspberry Pi. <i>Learning Computer Architecture with the Raspberry Pi</i> is the premier guide to understanding the components of the most exciting tech product available. Thanks to this book, every Raspberry Pi owner can understand how the computer works and how to access all of its hardware and software capabilities.</p> <p>Now, students, hackers, and casual users alike can discover how computers work with <i>Learning Computer Architecture with the Raspberry Pi</i>. This book explains what each and every hardware component does, how they relate to one another, and how they correspond to the components of other computing systems. You'll also learn how programming works and how the operating system relates to the Raspberry Pi's physical components.</p> <ul> <li>Co-authored by Eben Upton, one of the creators of the Raspberry Pi, this is a companion volume to the <i>Raspberry Pi User Guide</i></li> <li>An affordable solution for learning about computer system design considerations and experimenting with low-level programming</li> <li>Understandable descriptions of the functions of memory storage, Ethernet, cameras, processors, and more</li> <li>Gain knowledge of computer design and operation in general by exploring the basic structure of the Raspberry Pi</li> </ul> <p>The Raspberry Pi was created to bring forth a new generation of computer scientists, developers, and architects who understand the inner workings of the computers that have become essential to our daily lives. <i>Learning Computer Architecture with the Raspberry Pi</i> is your gateway to the world of computer system design.</p>
<p><b>Introduction 1 </b></p> <p>Cambridge 1</p> <p>Cut to the Chase 3</p> <p>The Knee in the Curve 4</p> <p>Forward the Foundation 5</p> <p><b>Chapter 1 The Shape of a Computer Phenomenon 7</b></p> <p>Growing Delicious, Juicy Raspberries 7</p> <p>System-on-a-Chip 10</p> <p>An Exciting Credit Card-Sized Computer 12</p> <p>What Does the Raspberry Pi Do? 14</p> <p>Meeting and Greeting the Raspberry Pi Board 14</p> <p>GPIO Pins 15</p> <p>Status LEDs 16</p> <p>USB Receptacles 18</p> <p>Ethernet Connection 18</p> <p>Audio Out 19</p> <p>Composite Video 21</p> <p>CSI Camera Module Connector 21</p> <p>HDMI 22</p> <p>Micro USB Power 22</p> <p>Storage Card 23</p> <p>DSI Display Connection 24</p> <p>Mounting Holes 25</p> <p>The Chips 25</p> <p>The Future 25</p> <p><b>Chapter 2 Recapping Computing 27</b></p> <p>The Cook as Computer 28</p> <p>Ingredients as Data 28</p> <p>Basic Actions 30</p> <p>The Box That Follows a Plan 31</p> <p>Doing and Knowing 31</p> <p>Programs are Data 32</p> <p>Memory 33</p> <p>Registers 34</p> <p>The System Bus 36</p> <p>Instruction Sets 36</p> <p>Voltages, Numbers and Meaning 37</p> <p>Binary: Counting in 1s and 0s 37</p> <p>The Digit Shortage 40</p> <p>Counting and Numbering and 0 40</p> <p>Hexadecimal as a Shorthand for Binary 41</p> <p>Doing Binary and Hexadecimal Arithmetic 43</p> <p>Operating Systems: The Boss of the Box 44</p> <p>What an Operating System Does 44</p> <p>Saluting the Kernel 46</p> <p>Multiple Cores 46</p> <p><b>Chapter 3 Electronic Memory 47</b></p> <p>There Was Memory Before There Were Computers 47</p> <p>Rotating Magnetic Memory 48</p> <p>Magnetic Core Memory 50</p> <p>How Core Memory Works 50</p> <p>Memory Access Time 52</p> <p>Static Random Access Memory (SRAM) 53</p> <p>Address Lines and Data Lines 54</p> <p>Combining Memory Chips into Memory Systems 56</p> <p>Dynamic Random Access Memory (DRAM) 59</p> <p>How DRAM Works 60</p> <p>Synchronous vs. Asynchronous DRAM 62</p> <p>SDRAM Columns, Rows, Banks, Ranks and DIMMs 64</p> <p>DDR, DDR2 DDR3 and DDR4 SDRAM 66</p> <p>Error-Correcting Code (ECC) Memory 69</p> <p>The Raspberry Pi Memory System 70</p> <p>Power Reduction Features 70</p> <p>Ball-Grid Array Packaging 71</p> <p>Cache 72</p> <p>Locality of Reference 72</p> <p>Cache Hierarchy 72</p> <p>Cache Lines and Cache Mapping 74</p> <p>Direct Mapping 76</p> <p>Associative Mapping 78</p> <p>Set-Associative Cache 79</p> <p>Writing Cache Back to Memory 81</p> <p>Virtual Memory 81</p> <p>The Virtual Memory Big Picture 82</p> <p>Mapping Virtual to Physical 83</p> <p>Memory Management Units: Going Deeper 84</p> <p>Multi-Level Page Tables and the TLB 88</p> <p>The Raspberry Pi Swap Problem 88</p> <p>Watching Raspberry Pi Virtual Memory 90</p> <p><b>Chapter 4 ARM Processors and Systems-on-a-Chip 93</b></p> <p>The Incredible Shrinking CPU 93</p> <p>Microprocessors 94</p> <p>Transistor Budgets 95</p> <p>Digital Logic Primer 95</p> <p>Logic Gates 96</p> <p>Flip-Flops and Sequential Logic 97</p> <p>Inside the CPU 99</p> <p>Branching and Flags 101</p> <p>The System Stack 102</p> <p>System Clocks and Execution Time 105</p> <p>Pipelining 106</p> <p>Pipelining in Detail 108</p> <p>Deeper Pipelines and Pipeline Hazards 109</p> <p>The ARM11 Pipeline 112</p> <p>Superscalar Execution 113</p> <p>More Parallelism with SIMD 115</p> <p>Endianness 118</p> <p>Rethinking the CPU: CISC vs. RISC 119</p> <p>RISC's Legacy 121</p> <p>Expanded Register Files 122</p> <p>Load/Store Architecture 122</p> <p>Orthogonal Machine Instructions 123</p> <p>Separate Caches for Instructions and Data 123</p> <p>ARMs from Little Acorns Grow 124</p> <p>Microarchitectures, Cores and Families 125</p> <p>Selling Licenses Rather Than Chips 125</p> <p>ARM11 126</p> <p>The ARM Instruction Set 126</p> <p>Processor Modes 129</p> <p>Modes and Registers 131</p> <p>Fast Interrupts 137</p> <p>Software Interrupts 137</p> <p>Interrupt Priority 138</p> <p>Conditional Instruction Execution 139</p> <p>Coprocessors 142</p> <p>The ARM Coprocessor Interface 143</p> <p>The System Control Coprocessor 143</p> <p>The Vector Floating Point (VFP) Coprocessor 144</p> <p>Emulating Coprocessors 145</p> <p>ARM Cortex 145</p> <p>Multiple-Issue and Out-Of-Order Execution 146</p> <p>Thumb 2 147</p> <p>Thumb EE 147</p> <p>big.LITTLE 147</p> <p>The NEON Coprocessor for SIMD 148</p> <p>ARMv8 and 64-Bit Computing 148</p> <p>Systems on a Single Chip 150</p> <p>The Broadcom BCM2835 SoC 150</p> <p>Broadcom's Second- and Third-Generation SoC Devices 151</p> <p>How VLSI Chips Happen 151</p> <p>Processes, Geometries and Masks 152</p> <p>IP: Cells, Macrocells and Cores 153</p> <p>Hard and Soft IP 154</p> <p>Floorplanning, Layout and Routing 154</p> <p>Standards for On-Chip Communication: AMBA 155</p> <p><b>Chapter 5 Programming 159</b></p> <p>Programming from a Height 159</p> <p>The Software Development Process 160</p> <p>Waterfall vs. Spiral vs. Agile 162</p> <p>Programming in Binary 165</p> <p>Assembly Language and Mnemonics 166</p> <p>High-Level Languages 167</p> <p>Après BASIC, Le Deluge 170</p> <p>Programming Terminology 171</p> <p>How Native-Code Compilers Work 173</p> <p>Preprocessing 174</p> <p>Lexical Analysis 175</p> <p>Semantic Analysis 175</p> <p>Intermediate Code Generation 176</p> <p>Optimisation 176</p> <p>Target Code Generation 176</p> <p>Compiling C: A Concrete Example 177</p> <p>Linking Object Code Files to Executable Files 183</p> <p>Pure Text Interpreters 184</p> <p>Bytecode Interpreted Languages 186</p> <p>P-Code 186</p> <p>Java 187</p> <p>Just-In-Time (JIT) Compilation 189</p> <p>Bytecode and JIT Compilation Beyond Java 191</p> <p>Android, Java and Dalvik 191</p> <p>Data Building Blocks 192</p> <p>Identifiers, Reserved Words, Symbols and Operators 192</p> <p>Values, Literals and Named Constants 193</p> <p>Variables, Expressions and Assignment 193</p> <p>Types and Type Definitions 194</p> <p>Static and Dynamic Typing 196</p> <p>Two's Complement and IEEE 754 198</p> <p>Code Building Blocks 200</p> <p>Control Statements and Compound Statements 200</p> <p>If/Then/Else 200</p> <p>Switch and Case 202</p> <p>Repeat Loops 205</p> <p>While Loops 205</p> <p>For Loops 207</p> <p>The Break and Continue Statements 208</p> <p>Functions 210</p> <p>Locality and Scope 211</p> <p>Object-Oriented Programming 214</p> <p>Encapsulation 217</p> <p>Inheritance 219</p> <p>Polymorphism 221</p> <p>OOP Wrapup 224</p> <p>A Tour of the GNU Compiler Collection Toolset 224</p> <p>gcc as Both Compiler and Builder 225</p> <p>Using Linux Make 228</p> <p><b>Chapter 6 Non-Volatile Storage 231</b></p> <p>Punched Cards and Tape 232</p> <p>Punched Cards 232</p> <p>Tape Data Storage 232</p> <p>The Dawn of Magnetic Storage 235</p> <p>Magnetic Recording and Encoding Schemes 236</p> <p>Flux Transitions 237</p> <p>Perpendicular Recording 238</p> <p>Magnetic Disk Storage 240</p> <p>Cylinders, Tracks and Sectors 240</p> <p>Low-Level Formatting 242</p> <p>Interfaces and Controllers 244</p> <p>Floppy Disk Drives 246</p> <p>Partitions and File Systems 247</p> <p>Primary Partitions and Extended Partitions 247</p> <p>File Systems and High-Level Formatting 249</p> <p>The Future: GUID Partition Tables (GPTs) 249</p> <p>Partitions on the Raspberry Pi SD Card 250</p> <p>Optical Discs 252</p> <p>CD-Derived Formats 254</p> <p>DVD-Derived Formats 254</p> <p>Ramdisks 255</p> <p>Flash Storage 257</p> <p>ROMs, PROMs and EPROMs 257</p> <p>Flash as EEPROM 258</p> <p>Single-Level vs. Multi-Level Storage 260</p> <p>NOR vs. NAND Flash 261</p> <p>Wear Levelling and the Flash Translation Layer 265</p> <p>Garbage Collection and TRIM 267</p> <p>SD Cards 268</p> <p>eMMC 270</p> <p>The Future of Non-Volatile Storage 271</p> <p><b>Chapter 7 Wired and Wireless Ethernet 273</b></p> <p>The OSI Reference Model for Networking 274</p> <p>The Application Layer 276</p> <p>The Presentation Layer 276</p> <p>The Session Layer 278</p> <p>The Transport Layer 278</p> <p>The Network Layer 279</p> <p>The Data Link Layer 281</p> <p>The Physical Layer 282</p> <p>Ethernet 282</p> <p>Thicknet and Thinnet 283</p> <p>The Basic Ethernet Idea 283</p> <p>Collision Detection and Avoidance 285</p> <p>Ethernet Encoding Systems 286</p> <p>PAM-5 Encoding 290</p> <p>10BASE-T and Twisted-Pair Cabling 291</p> <p>From Bus Topology to Star Topology 292</p> <p>Switched Ethernet 293</p> <p>Routers and the Internet 296</p> <p>Names vs. Addresses 296</p> <p>IP Addresses and TCP Ports 297</p> <p>Local IP Addresses and DHCP 300</p> <p>Network Address Translation 302</p> <p>Wi-Fi 304</p> <p>Standards within Standards 305</p> <p>Facing the Real World 305</p> <p>Wi-Fi Equipment in Use 309</p> <p>Infrastructure Networks vs. Ad Hoc Networks 311</p> <p>Wi-Fi Distributed Media Access 312</p> <p>Carrier Sense and the Hidden Node Problem 314</p> <p>Fragmentation 315</p> <p>Amplitude Modulation, Phase Modulation and QAM 316</p> <p>Spread-Spectrum Techniques 319</p> <p>Wi-Fi Modulation and Coding in Detail 320</p> <p>How Wi-Fi Connections Happen 323</p> <p>Wi-Fi Security 325</p> <p>Wi-Fi on the Raspberry Pi 326</p> <p>Even More Networking 329</p> <p><b>Chapter 8 Operating Systems 331</b></p> <p>Introduction to Operating Systems 333</p> <p>History of Operating Systems 333</p> <p>The Basics of Operating Systems 336</p> <p>The Kernel: The Basic Facilitator of Operating Systems 343</p> <p>Operating System Control 344</p> <p>Modes 345</p> <p>Memory Management 346</p> <p>Virtual Memory 347</p> <p>Multitasking 347</p> <p>Disk Access and File Systems 348</p> <p>Device Drivers 349</p> <p>Enablers and Assistants to the Operating System 349</p> <p>Waking Up the OS 349</p> <p>Firmware 353</p> <p>Operating Systems for Raspberry Pi 354</p> <p>NOOBS 354</p> <p>Third-Party Operating Systems 356</p> <p>Other Available Operating Systems 356</p> <p><b>Chapter 9 Video Codecs and Video Compression 359</b></p> <p>The First Video Codecs 360</p> <p>Exploiting the Eye 361</p> <p>Exploiting the Data 363</p> <p>Understanding Frequency Transform 367</p> <p>Using Lossless Encoding Techniques 371</p> <p>Changing with the Times 373</p> <p>The Latest Standards from MPEG 374</p> <p>H.265 378</p> <p>Motion Search 378</p> <p>Video Quality 381</p> <p>Processing Power 382</p> <p><b>Chapter 10 3D Graphics 383</b></p> <p>A Brief History of 3D Graphics 383</p> <p>The Graphical User Interface (GUI) 384</p> <p>3D Graphics in Video Games 386</p> <p>Personal Computing and the Graphics Card 387</p> <p>Two Competing Standards 390</p> <p>The OpenGL Graphics Pipeline 391</p> <p>Geometry Specification and Attributes 393</p> <p>Geometry Transformation 396</p> <p>Lighting and Materials 400</p> <p>Primitive Assembly and Rasterisation 403</p> <p>Pixel Processing (Fragment Shading) 405</p> <p>Texturing 407</p> <p>Modern Graphics Hardware 411</p> <p>Tiled Rendering 411</p> <p>Geometry Rejection 413</p> <p>Shading 415</p> <p>Caching 416</p> <p>Raspberry Pi GPU 417</p> <p>Open VG 421</p> <p>General Purpose GPUs 423</p> <p>Heterogeneous Architectures 423</p> <p>OpenCL 425</p> <p><b>Chapter 11 Audio 427</b></p> <p>Can You Hear Me Now? 427</p> <p>MIDI 428</p> <p>Sound Cards 428</p> <p>Analog vs. Digital 429</p> <p>Sound and Signal Processing 430</p> <p>Editing 431</p> <p>Compression 431</p> <p>Recording with Effects 432</p> <p>Encoding and Decoding Information for Communication 433</p> <p>1-Bit DAC 434</p> <p>I<sup>2</sup>S 436</p> <p>Raspberry Pi Sound Input/Output 437</p> <p>Audio Output Jack 437</p> <p>HDMI 438</p> <p>Sound on the Raspberry Pi 438</p> <p>Raspberry Pi Sound on Board 439</p> <p>Manipulating Sound on the Raspberry Pi 439</p> <p><b>Chapter 12 Input/Output 447</b></p> <p>Introducing Input/Output 448</p> <p>I/O Enablers 451</p> <p>Universal Serial Bus 452</p> <p>USB Powered Hubs 455</p> <p>Ethernet 457</p> <p>Universal Asynchronous Receiver/Transmitters 458</p> <p>Small Computer Systems Interface 459</p> <p>Parallel ATA 459</p> <p>Serial Advanced Technology Attachment 460</p> <p>RS-232 Serial 460</p> <p>High Definition Media Interface 461</p> <p>I2S 462</p> <p>I2C 463</p> <p>Raspberry Pi Display, Camera Interface and JTAG 464</p> <p>Raspberry Pi GPIO 464</p> <p>GPIO Overview and the Broadcom SoC 465</p> <p>Meeting the GPIO 466</p> <p>Programming GPIO 473</p> <p>Alternative Modes 479</p> <p>GPIO Experimentation the Easy Way 480</p> <p>Index 481</p>
<p><b>Eben Upton</b> is one of the co-creators of the Raspberry Pi, driven by the desire to create a new generation of developers capable of making an effective contribution to the field. Eben is also a co-author of the <i>Raspberry Pi User Guide</i>.<b></b> <p><b>Jeff Dunteman</b> is a veteran tech author and a co-founder of Coriolis Press. His previous publications include <i>Assembly Language Step By Step</i> and <i>Jeff</i> <i>Dunteman's Wi-Fi Guide</i>.
<p><b>Take an insider tour of the Raspberry Pi and learn the mechanics of computing</b> <p>Inspired by the relatively cheap, highly programmable computers of the 1980s—and their impact on the UK tech industry—the Raspberry Pi was designed to inspire and empower a new generation of programmers. Accessible both economically and technically, the Raspberry Pi is the ideal vehicle for learning how computers work. <i>Learning Computer Architecture</i> <i>with Raspberry Pi</i> is your personal guide on this journey of discovery, and it's your expert coach for developing a knowledge base that translates well beyond the Pi itself. Authors Eben Upton and Jeff Dunteman are the ideal teachers: Upton provides deep insight as a Raspberry Pi co-creator, and Dunteman distills complex technical knowledge into easily understood explanations. Together they provide expert guidance on the technology behind all computers, based on the mechanics behind the credit card–sized computer that is revolutionizing the world of programming. <p>This book walks you through each component step by step to show you what it does, why it's needed, how it relates to the other components, and the choices the designers faced when creating it. From memory, storage, and processors, to Ethernet, cameras, and audio, Upton and Dunteman team up to give you a solid understanding of the Raspberry Pi internals, and how it relates to the technology underlying computing as a whole. <p>With design intent and critical function straight from the source, <i>Learning Computer Architecture with Raspberry Pi</i> helps you: <ul> <li>Learn the purpose behind each piece of the Pi</li> <li>Understand how the various components interact</li> <li>Dig into the thought process behind the system's design</li> <li>Learn how programming works</li> <li>Examine the interplay between hardware and operating system</li> <li>Delve into the mechanics behind the ARM chip</li> <li>Compare and contrast different chips, from ARM to Intel</li> </ul> <p>Visit the companion website at<b> www.wiley.com/go/comparchitecture</b>

Diese Produkte könnten Sie auch interessieren: