Module 1 (Hardware)

Aug 9, 2022·
Gitgotchi
Gitgotchi
· 12 min read
Photo by Lorenzo Herrera on Unsplash
Date
Aug 9, 2022 12:00 AM

Computer components

For a computer to work, it needs some physical components to help it calculate and process human input. So, in order to understand how a computer works as a whole, one must first understand its individual parts. In order to successfully accomplish this task and expand my knowledge, I list all the relevant content in the following chapters.

CPU

Central Processing Unit (CPU)

Central Processing Unit (CPU)

Let’s start with the heart of the computer, the “Central Processing Unit” (CPU). The CPU is similar to the brain in the human body. It is “theoretically” divided into three different parts.

  • First, there is the arithmetic-logic part (ALU), which is contained in a CPU. This part is only responsible for mathematical calculations based on binary numbers.
  • The second part consists of the control unit (CU). It is mainly responsible for making decisions and making sure that the computer works as efficiently as possible so that no unnecessary computing power or energy is wasted.
  • The third and final part is the processor registers. They are similar to the registers in the real world, where each register stores some information that is needed by the CPU for the next executions or that is used most often. Each register has an address where the pointer indicates what information the CPU needs next.

As for the construction of the CPU, it needs a socket as well as a heatspreader to get rid of unnecessary heat generated during calculations. Typical brands for these components are Intel, AMD or Qualcomm. To distinguish the “performance”, the clock rate is usually considered and nowadays also the so-called “cores”.

The clock rate is specified in the hearts (Hz) metric. Common clock rates for today’s CPUs are between 1.5 GHz and 5 GHz. GHz stands for Giga Hearts, so for example 4 GHz equals 4'000'000'000 hearts. It indicates how many instructions per “cycle” the processing unit can execute. With newer CPUs, it is usually common to integrate multiple “cores” so that the CPU can execute multiple tasks or cycles simultaneously.

Motherboard

Section of a motherboard

Section of a motherboard

The motherboard is the part that can actually be described as the one that holds everything together. All hardware components are attached to the motherboard. It acts as a small project manager and monitors everything so that the various components work together.

Motherboards differ mainly by their size and purpose. For example, the different standard sizes are ATX, Mini ATX, Micro ATX or System on Chip (SoC), these are used for smaller devices like a smartphone. The application area also plays a role. For example, a motherboard for a server generally has many more solts and IOs compared to motherboards for private PCs.

RAM

Random Access Memory (RAM)

Random Access Memory (RAM)

There are two types of memory for storing information. One is read-only memory (ROM) and the other is random access memory (RAM). ROMs are used to back up information that should not be changed by the end user, such as the BIOS. The computer should only be able to execute it (as the name implies “read only”) and not overwrite it.

Unlike RAM, which is used for fast access to information as well as editing the information. However, the disadvantage is that as soon as the computer is turned off (power is cut), everything in the RAM is erased and cannot be recovered. These memories are mounted relatively close to the motherboard to reduce the latency.

In addition, there are different types that have been developed over time:

  • DRAM (Dynamic random access memory)
  • DDR4/5 (Double data rate gen 4/5) is clocked higher and therefore can transfer more date in the same amount of time
  • DIMM/SODIMM (Dual in-line memory module)

Storage devices

Storage device (HDD)

Storage device (HDD)

Memory devices are needed to keep the information even after the computer is turned off. They can be external or internal attached to the motherboard. Generally, they are divided into HDD and SSD.

  • Hard disk drives (HDD) are among the primary storage devices. An arm-like “actuator” mechanically writes data to or reads data from the platters/disks. Therefore, they are somewhat slow compared to non-physical storage and become worn out over time.

  • Solid-state drives (SSD), on the other hand, have no mechanical parts. They use flash memory and everything is built logically and not physically (through different voltages).

PSU

Power supply unit (PSU) lower left corner

Power supply unit (PSU) lower left corner

The power supply unit (PSU) is needed to convert voltage levels from the electricity out of the wall socket to the voltage levels from the motherboard.

GPU

Graphical processing unit (GPU)

Graphical processing unit (GPU)

In most cases, humans need a monitor to interact with the computer. For graphical input, the CPU already provides the processing power to display a minimalistic graphical user interface (GUI). However, in order to display more than just command lines on the monitor, a graphics card or GPU was developed.

With such a specialized unit, graphical input/output can be displayed much faster, but it also requires more power and space to implement in a PC.

Cooling devices

Vents and watercooling system

Vents and watercooling system

A cooling system is required to prevent the PC components from overheating or even burning out. Mostly, fans are used to cool the system with air. However, there are also water cooling systems that use a water circuit to carry away the heat via pipes.

Advanced questions:
Click to view the answers
  • 1: 1.8GHz / 2.3GHz
  • 2: System on Chip (SoC)
  • 3: 16GB
  • 4: SSD
  • 5: My laptop doesn’t have a PSU it only has a AC adapter integrated in the loading cable.
  • 6: Yes but its not a complete card its iGPU.
  • 7: Its normally cooled with vents. Smartphones have special thermal diffusion sheets to cool themselves.
Click to view the hypothetical machine
  • Windows 10/11
  • Intel i9 12th Gen
  • 4x 32GB DDR5-RAM Corsair Dominator Platinum RGB
  • 2x 2TB Sandisk SSD Plus
  • HP NVIDIA RTX A4000 4DP
  • ASUS ROG STRIX 550G 80+ GOLD power supply black
  • Darkflash Tech L6 CPU active cooling LED (heatsink + fan 90x90)
  • 4x Xigmatek Galaxy III Essential Computergehäuse Ventilator
  • Netzwerkkarte ASUS XG-C100C V2
  • Shopping list for the selfmade PC on digitec.com

Bits and bytes

A bit is a single logical unit that the computer needs to perform calculations. It is the lowest level of code and it only has ones or zeros. The 1 stands for “power on”, the 0 stands for “power off”. A byte consists of 8 bits.

Questions:
Click to view the answers
  • 1: 125'000KB
  • 2: 8'388'608 bits
  • 3: 931GB
  • 4: Amanox Tea

Johnny Program

Johnny is a quite simple and straightforward program that aims to illustrate how a CPU works and calculates. With an easy-to-use interface and 10 basic commands, you can imitate the CPU’s calculations. Here is a quick look at the default web interface of Johnny:

Standard Johnny web interface

Standard Johnny web interface

Programm:
Click to view the programm

Standard commands are: TAKE, ADD, SUB, SAVE, JMP, TST, INC, DEC, NULL, HLT

Now to multiply two different numbers in random registers and save the result in another random register I used the following programm:

Program start

Program start

And the result was shown in my default register:

Program finished

Program finished

Boolean algebra

Transistors are the basis that a chip in modern technologies work. They have two states: on or off equal to open or closed. With these to states you can define different combinations to let them open the “gate”. These options are AND, OR, NOT, XOR, NAND and NOR. Here’s a short overview over the boolean algebra types and tables:

Boolean algebra / Source: Tracyrenee

Boolean algebra / Source: Tracyrenee

In this part of the module, I changed values in the memory with the help of the program CheatEngine to “cheat” in the game CookieClickers. It was possible to achieve a huge number of clicks in a very short time.

CookieClickers cheated final result

CookieClickers cheated final result

Questions HDD&SSD:
Click to view the answers
  • 1: Consumer HDDs are made for PCs or laptops. They deliver fast information and have a much faster reading/writing speed then server or Network Attached Storage (NAS) HDDs. In return they can only run for a few hours in one piece. Server HDDs on the other hand can nearly run forever and have some extra features like RAID (redundant array of individual disks) configuration.
  • 2: There are two grades for SSDs. Enterprise or client SSDs.
  • 3: Server based: My SSD -> Dell R6515, my HDD -> Synology DS216+ Consumer based: My SSD -> Sandisk SSD Plus, my HDD -> Seagate FireCuda HDD

Interfaces

Regarding the different hardware interfaces, here is a list that I have created:

External interfaces

NameUse caseReleaseBandwidthWiresClockSignaltypeDistance
RCAVideo, Audio194010 MHz1768 kHzAnalog3m
RJ45Network197010 GBit/s8160 MHzDigital3m
VGAVideo Trans.19873 MBit/s1460 MHzDigital4m
USB-1.xPower, Data Trans.19961.5 MBit/s41 kHzDigital5m
DVIVideo Trans.19997.44 GBit/s29165 MHzDigital4.5m
USB-2.0Power, Data Trans.2000480 MBit/s424 kHzDigital5m
HDMIVideo and Audio200248 GBit/s19150 MHzDigital25m
DPVideo Audio200677 GBit/s20225 MHzDigital1.8m
USB-3.xPower, Data Trans.20085 GBit/s933 kHzDigital5m
Thunderbolt 1/2Power, Video, Audio, Network2011/201320 GBit/s160 HzDigital2m
Thunderbolt 3Power, Video, Audio, Network201540 GBit/s1240 HzDigital2m

Internal interfaces

NameUse caseReleaseBandwidthWiresClockSignaltype
MolexPower supply in computers1950-4-Digital
WLANNetwork interface1980300 MBit/s-240 MHzDigital
PCIPeripheral Component Interconnect1994533 MBit/s1666 MHzDigital
BluetoothBT Device Connection19992 Mbit/s-2 MHzDigital
SFPModules for network connections20005 GBit/s--Digital
PCIePeripheral Component Interconnect Express20033940 MBit/s248.0 GHzDigital
SATAData exchange with hard disks20073 GBit/s76 GHzDigital
Questions desired interfaces:
Click to view the answers
  • 1: Thunderbolt, HDMI, Ethernet (RJ45), USB-A, 3.5mm Jack for audio
  • 2: I would want that the GUIs would be more handsome/more intuitive. They look quiet outdatet what also makes sense in some way because server settings don’t have to look very appealing.

Periphery

What is not included in the PC itself, but is needed for optimal interaction with humans, is the periphery. In this section I will only list the most important facts for the three most commonly used devices.

Keyboard

Keyboard

Keyboard

In order to achieve the greatest possible efficiency at work, there are different sizes of keyboards. With the ANSI keyboard form factor, you can decide which size is most useful for your work so that you don’t have unused/unnecessary keys. Also, there are different switches for the keys you use on the keyboard. There are three types:

  • Linear key-switches (No bump, no click)
  • Tactile key switches (Tactile bump, no click)
  • Clicky key switches (Tactile bump, audible click)

PC mouse

PC mouse

PC mouse

The main features to distinguish between a good and a bad mouse are:

  • DPI (Dots per inch)
  • Polling rate (How much the CPU updates the cursors position)
  • LOD (Lift off distance)

Display

Display

Display

In term of displays there are four different types:

  • CRT (Cathode Ray Tubes)
  • Plasma
  • LCD (Liquid Crystal Display)
  • OLED (Organic Light Emitting Diode)

Unlike the LCD and OLED screens, the CRT and plasma screens have already been discontinued by the majority. As the name suggests, CRT screens worked with cathode ray tubes and were invented by Ferdinand Braun. They were produced between 1960-2000, but were then increasingly replaced by flat screens.

The situation was similar with plasma screens. They became popular around the turn of the millennium (between 1997 and 2005). The housing contained a so-called plasma (ionized gas) that emitted UV rays (light) when discharged.

Questions periphery:
Click to view the answers
  • 1: To get the bandwith you need to divide the data volume through the times it takes.
    • Step 1: 2 * 3600 = 7200
    • Step 2: 6 / 7200 = 0.00083
    • Step 3: 0.00083 * 8 = 0.0066
    • Result = 0.0066 Gbit/s
  • 2: Upload/Download
    • Home: 950 Mbit/s | 850 Mbit/s
    • Handy: 70M Mbit/s | 40 Mbit/s
  • 3: The eyes are likely to be damaged if the screen is too close to the eyes for too long (damage to the retina). When the screen is too close, you can no longer see the image sharply because your eyes can no longer focus on the image.
  • 4: Enough pixles per eye, enough FoV (Field of View) as well as +120 Hz frame rate
  • 5: S/PDIF (Sony/Philips Digital InterFace)
  • 6: The most common codecs for sound are ->
    • MP3
    • AAC
    • WAV
    • AIFF
    • WMA
    • Opus
  • 7: Both the plasma screens and the CRT screens had problems adapting to the new technology standards. The density of the pixels, the formats of the monitors (16:9) and the resolution 1080p+ were really difficult to realize and therefore not economical.
  • 8:
    • Brightness: Brightness is measured in terms of candles per square meter (cd/m^2). This definitely plays an important role in the everyday use of screens today. LCDs are usually brighter in this context and are therefore also used for outdoor screens in sunlight (e.g. smartphones).
    • Contrast: However, OLEDs score better in the contrast category. While LCDs have undesirable backlighting in dark rooms, OLEDs do not have it at all because no light shines in a black area of the picture. Therefore, their contrast ratio is far above that of an LCD screen.
    • Viewing angle: While OLED displays have almost no losses even when changing the viewing angle (due to their thin construction), LCD displays may have some losses but it depends on the technology used in the LCD display.

Workplace

Example for Workplace

Example for Workplace

IT-components of an ideal office workspace (without furniture) would be:

  • Laptop (enough RAM and a multithreading CPU to do several tasks at the same time smoothly)
  • Dockingstation (enough interfaces e.g. 2x Thunderbolt, Ethernet, 2-3x USB-A, HDMI + DP, audio jack)
  • Mouse (for my preferences gaming mouse preferred)
  • Keyboard (my perferences would be a clicky mechanical one)
  • 1x 21:9 OLED display or 2x 16:9 LCD
  • external SSD
  • Headset

External upgrades would be possible.

Cooling

Questions cooling:
Click to view the answers
  • 1: Energy Efficiency Ratio (EER) represents the ratio of cooling output (stated in British thermal unit (BTU) in realtion to heating input (Wh))
  • 2: Aeration coefficient
  • 3: Since the computing work is distributed over many more hardware components than on a PC, the fans don’t have to be as big (and sometimes they are also less obstructed resp. heat is not reflected as well).