topic 1 Flashcards
what is a CPU?
Our CPU (or silicon chip or simply processor) is actually an integrated circuit (IC), which consists of millions of transistors interconnected by microscopic wires on a footprint of around 1cm^2 (transistors are the building blocks of electronic circuits)
how is an intergrated circuit produced?
the designed IC will be etched onto a wafer of silicone. in order to counter errors in the production process, 100s of copies of the same IC are etched with each one called a die. The dies are tests and each error free die is cut and mounted in a package with the dies pads connected to package pins. this results in the silicone chip being encased in a package with the external contacts of the IC connected to the pins in the package to enable direct contact with other components within the PC
what is the multicore processors?
multiple independent cores (CPUs) are manufactured on the same IC but these cores share things like main memory, due to technological limitations only a few are used today. Future technological advances will lead to multi-core processors with hundreds of cores becoming many-core processors. In order to utilize this programmer must think parallel rather than sequentially
what does moores law state?
Moore’s law states that the transistor capacity of an IC doubles every 18-24 months. - rough description of a long-term trend,
what are the flaws of mooores law?
there is a fundamental limit on the number of transistors as when it reaches the atomic scale they wont be able to decrease further. Power dissipation is an issue due to the fact power is proportional to the number of transistors switched multiplied by the frequency of the switching ie the clock speed of the CPU. Therefore, as the number of transistors increase so does the power usage therefore power dissipation.
why might multiple core processors solve the issue of power dissipitation?
Power dissipation is an issue due to the fact power is proportional to the number of transistors switched multiplied by the frequency of the switching ie the clock speed of the CPU. Therefore, as the number of transistors increase so does the power usage therefore power dissipation. multi-core processors solve this as instead of using one high clock speed CPU they can use multiple lower clock speeds which work together and give better computational power
what are the three fundamental logic gates?
NOT, OR, AND
what is a logic gate?
small circuits made up of transistors – can be used to store Boolean values such as 1 or 0 interpreted by a low or high voltage therefore creating a Boolean output
how many transistors does it take to build an NOT gate?
2 transistors
how many transistors does it take to build an AND gate?
6 transistors
how many transistors does it take to build an OR gate?
6 transitors
how many transistors does it take to build a NAND gate?
2 transistors
why might the NAND gate be considered the fundamental logic gate?
this is due to the fact that a NAND gate can be used to create all the other logic gates .
how can a NAND gate create a NOT gate?
the NAND gate can create a NOT gate by duplicating the inputs
how can a NAND gate create an OR gate?
A NAND gate can form an OR gate by a NAND gate where the two inputs are prefixed by a NOT gate.
how can a NAND gate create an AND gate?
A NAND gate can form an AND gate by having a NAND gate followed by a NOT gate
is it true that for any given function we can compute the function using just NOT AND and OR gates?
yes
what is binary system?
binary uses power of 2 to signal its numbers with 2^0 at the furthest to the right and in increasing maginitude the further left. for example 001 is equal to 1 and 101 is equal to 5 as 2^2 +2^0
what is the purpose of a half adder?
the half adder takes inputs X and Y and calculates the boolean sum of the two values. The Boolean sum of a collection of inputs is 1 if, and only if, an odd number of the inputs are 1, and also the resulting carry bit c(x, y), which is 1 if, and only if, both x and y are 1
what is the purpose of a full adder?
a full adder takes the inputs X Y and C and computes the boolean sum together with a carry bit D which is 1 only of atleast two of the inputs are 1
what is a full adder made of?
two half adders and an OR gate
what is the arithemtic logic unit?
it is a part of the CPU which performs all the arithmetic and logical operations on data.
what is the datapath?
The datapath performs all the data processing operations (it is the ‘brawn’ of the processor) and includes the arithmetic logic unit. The datapath includes (a limited number of) memory locations called registers
what is the control?
The control tells the datapath, memory and input/output (I/O) de-vices what to do (it is the ‘brains’ of the processor). Essentially, the control is the conduit( the way of passing information) between the datapath and the main memory.
what is the cache?
A cache consists of small, fast and relatively expensive on-chip memory. Data caches are used to store memory items that need to be regularly accessed (sometimes there is more than one such cache). Similarly, instruction caches are used to store instructions that need to be regularly executed (we’ll say more about caches later)
what is the key aspect of von neumann architecture?
A key aspect of the von Neumann architecture is that the stored program and the data are both held in memory, which allows for self-modifying programs
what is a flaw with von neumann architecture?
programming errors might result in a program obliterating itself or modifying itself in unintended ways!
what are the three types of buses?
data bus, address bus, control bus
what is a bus in computer science terms?
a bus is simply a communications device that can be thought of as a series of ‘parallel wires’ down which data can flow, with the number of these ‘wires’ being the width of the bus
what is a von neumann bottleneck?
a limitation in the data transfer rate between the CPU and memory (as stated above, data and instructions have to be fetched in sequential order and the CPU spends a considerable time idle whilst waiting for data items or instructions to be fetched from memory).
what did the von neumann bottleneck give rise to?
it gave rise to the use of caches
what is the harvard architecture?
The Harvard architecture, where memory is partitioned into data memory and instruction memory with dedicated buses for each of them, does not suffer from the von Neumann bottleneck Now, as the program instructions and data items can be fetched simultaneously
what is a modified harvard architecture?
data memory and instruction memory are separated, each with their own dedicated bus, the processor allows data to be treated as instructions and instructions to be treated as data; this allows for self-modifying or self-optimising code. In addition, there are separate CPU caches for instructions and for data
what is memory?
memory is a set of pigeon holes into which data can be placed. each pigeon hole has a unique address and holds 1 byte of storage( 8 bits either 1 or 0)
what is the role of the address bus?
The address bus holds addresses of locations in main memory. The width of the address bus determines the size of addressable memory. For example, an address bus that is 32 bits wide can carry at most 2^32 different addresses. So, as each memory address holds 1 byte then addressable memory has size 4 Gbytes.