























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























class02.ppt CS 213 F’
(6 transistors)
b (^) b’
bit line bit line
word line
Inverter : High input --> Low Output Low input --> High Output
Vin
0 0.2 0.4 0.6 0.8 1
0
1
Vin V
V
Slope < –
Slope > –
HexDecimalBinary
Sun Words
Bytes Addr.
Alpha Words
Addr = 0000
Addr = 0008
Addr = 0000
Addr = 0004
Addr = 0008
Addr = 0012
C Data Type Alpha Sun, PC, Mac, etc. int 4 4 long int 8 4 char 1 1 short 2 2 float 4 4 double 8 8 char * 8 4 » Or any other pointer
int a = 15213; printf("int a = 15213;\n"); show_bytes((pointer) &a, sizeof(int));
int a = 15213; 0x11ffffcb8 0x6d 0x11ffffcb9 0x3b 0x11ffffcba 0x 0x11ffffcbb 0x
Decimal: 15213 Binary: 0011 1011 0110 1101 Hex: 3 B 6 D
Alpha A
Sun A
Alpha B
Sun B
Alpha C
Sun C
Two’s complement representation (Covered next lecture)
IIEEE Single Precision Floating Point Representation Hex: 4 6 6 D B 4 0 0 Binary: 0100 0110 0110 1101 1011 0100 0000 0000 15213: 1110 1101 1011 01
Not same as integer representation, but consistent across machines
Alpha F
Sun F
Alpha S Sun S
int sum(int x, int y)
{
return x+y;
}
Different machines use totally different instructions and encodings
Alpha sum
Sun sum