computer architecture Flashcards
what is a computer
an electronic device for storing and processing data in binary
what is computer architecture
set of rules and systems that describe computer systems
von-neuman architecture
memory stores both data and instructions
Harvard architecture
separate memory for data and instructions therefore they can be accessed simultaneously making it faster and more efficient
what are some negatives of harvard architecture
not suited for self-modifying code
requires more memory than von-neuman making it more expensive
what is a positive of harvard architecture
allows for more cyber resilience as you cant attack both memory simultaneously
what is modified harvard architecture
data and cache are separated internally and a single main memory is visible to programs and users
what are the three ways that you can measure the speed of a cpu
clock rate
flops
mips
however none of these are ideal as they dont take input and output speeds into account
clock rate
more clicks /s means more instructions executed /s
what is a negative of using the clock rate to measure speed
its unfair as different instruction can take a different number of clicks
MIPS
millions of instructions /s; a better indication of speed but depends which instructions have been counted
flops
floating point operations per second
what is moore’s law
the transistor number doubles every two years; poweer and heat problems increase as the clock rate does which is very hard to cool down
what is clustering
we can increase performance by linking computers using high speed networks which leads to blade servers
applications can tun across the cluster
what is instruction set architecture
the view of the processor that is seen by programs being executed by that particular processor
RISC
reduced instruction set computers
small number of instructions
all instruction apart from ldr and str operate on registers
instructions usually take one clock cycle to complete
registers
holding areas for data being worked on outside the cpu
what are the main two ways of handling subroutines
using stack
saving the value of the pc as the return address
what are the 3 status flags of the alu
overflow
zero
negative
what is used to add 2 bits together
half adder
why do we need a full adder
to add multiple bits together
what is the difference between volatile and non-volatile memory
volatile memory erases data once the power is off
what is dynamic memory
assigning memory space during runtime
what is a positive and negative of dynamic memory
relatively cheaper
slower than static
how are bits stored in dynamic memory
by charging and discharging a device consisting of a capacitor controlled by a transistor
how are bits read in dynamic memory
by sensing the presence/absence of a stored charge
what is address decoding
an address decoder maps the linear address to a specific location in memory
big-endian
the location/byte with the lowest memory address holds the most significant value