Documente Academic
Documente Profesional
Documente Cultură
Quote: John Von Neumann If people do not believe that mathematics is simple,
CPU
Memory Subsystem
Address Bus
Used to specify the address of the memory location to access. Each I/O devices has a unique address. (monitor, mouse, cd-rom) CPU reads data or instructions from other locations by specifying the address of its location. CPU always outputs to the address bus and never reads from it.
Data Bus
Actual data is transferred via the data bus. When the cpu sends an address to memory, the memory will send data via the data bus in return to the cpu.
Control Bus
Collection of individual control signals. Whether the cpu will read or write data. CPU is accessing memory or an I/O device Memory or I/O is ready to transfer data
Instruction Cycles
Procedure the CPU goes through to process an instruction. 1. Fetch - get instruction 2. Decode - interperate the instruction 3. Execute - run the instruction.
Address is placed at beginning of clock after one clock cycle the CPU asserts the read. Causes the memory to place its data onto the data bus. CLK : System Clock used to synchronize CLK
Bus
Bus Read
Address
Data
CPU places the Address and data on the first clock cycle. At the start of the second clock the CPU will assert the write control signal. This will then start memory to store data. After some time the write is then deasserted by the CPU after removing the address and data from the subsystem. CLK Address Bus Data Bus
Address Data
Read
CPU organization
CPU controls the Computer The CPU will fetch, decode and execute instructions. The CPU has three internal sections: register section, ALU and Control Unit
Register Section
Includes collection of registers and a bus. Processors instruction set architecture are found in this section. Non accessible registers by the programmer. These are to be used for registers to latch the address being accessed and a temp storage register.
Memory Subsystem
2 Types of Memory:
ROM : Read Only Memory
Program that is loaded into memory and cannot be changed also retains its data even without power. Also called read/write memory. This type of memory can have a program loaded and then reloaded. It also loses its data with no power.
Masked ROM :
ROM that is programmed with data when fabricated. Data will not change once installed. Hardwired.
Capable of being programmed by the user with a ROM programmer. Not hardwired. Much like the PROM this EPROM can be programmed and then erased by light.
Another form of EPROM but is reprogammable
EEPROM :
Leaky capacitors. Caps are charged and slowly leak until they are refreshed to there original data locations. Ex. Computer RAM Much like a register. The contents stay valid and does not have to be refreshed. SRAM is faster than DRAM but cost more Ex. Cache
Each RAM chip has 2^n * m. n address inputs and m bidirectional data pins
ROM and RAM have similar internal organization. Internal linear Organization. Ex. 8 X 2 ROM Chip:
0 0 1 2 3 4 5 6 7
A2
A1 A0
0 1 2 Decoder 3 4 5 6 E 7 3-8
1 2 3 4 5 6 7
CE OE
D0
Memory Subsystem
Memory subsystem is the combination of memory chips Example : 8 x 2 chips can be combined to make an 8 x 4 memory. Both chips will receive the same 3 address inputs from the bus, as well as the CE and OE signals. The data pins of the first chip are connected to bits 3 and 2 and the other to 1 an 0 of the data bus
They differ in how data is arranged in memory. The Neumann uses mixed memory module while the Harvard uses separate memory modules for data and instructions
Modern computers today predominantly use the Neumann architecture. Although it will also use some elements of the harvard architecture. The difference is the PC will assign sections of memory to either instructions or data.
Although this is not a true Harvard architecture because that system requires that a memory module always be assign the same one of the two.