# CSE 30 -- Lecture 1 -- Sep 30

This lecture covers basic computer organization: processor, memory, and I/O devices on a system bus, and the processor's internal structure of control logic, functional units, and internal busses. (This is a slightly different -- more detailed -- picture than that given in the book.) We also started to talk about number representation, in particular, 1's complement representation. We will cover 2's complement representation in the next lecture.

## Inside the Computer

I/O devices include displays (graphics adapters), disk controllers, audio cards, network interfaces, etc.

Buses (the other spelling, "busses", are pecks on the cheek) are just bundles of wires for carrying related electrical signals. The system bus includes two subcomponents, the address bus and the data bus. When the CPU fetches instructions or data, it places the address of the instruction or data on the database, and the memory module recognizes the address as `belonging' to it and responds by places the memory contents (the instruction or the data) on the data bus, whereupon the CPU will sense the value. You should think of the memory module as a large array, and an address as simply an integer index into the array. This integer is sent over the address bus in binary form -- each wire has two valid voltage levels -- and similarly, the data is read from the memory as a binary value.

The addresses and data are sent in binary. We talked about how the unsigned binary number representation worked and did an addition example. Next, we talked about one alternative representation of numbers, the 1's complement representation, which allowed us to represent negative numbers. Negative numbers have the sign bit set to a 1, and the value his the binary number obtained from flipping the remaining bits.

We noted how addition of numbers represented in 1's complement is tricky. When one or both of the numbers being added is negative, we first add the numbers using the same addition hardware as we used for unsigned numbers, and then we must add another 1 to the result to get the correct answer.

[ search CSE | CSE home | bsy's home page | webster i/f | yahoo | hotbot | lycos | altavista | pgp key svr | spam | commerce ]

bsy+cse30.f99@cs.ucsd.edu, last updated Wed Oct 6 15:16:51 PDT 1999. Copyright 1999 Bennet Yee.
email bsy.