Spring 2002 CSCI 255 Practice Homework 5

This homework is not graded. It is practice for the 18 March quiz.

Problem 1

Draw a block diagram of a 512M×16 RAM. The only real work here is figuring out the number of address and data pins.

Problem 2

An LC-2 program, expressed in binary, appears below:


0010001100000000
0010010000001110
0000010000001100
0001001001100000
0000100000001000
0001001001000001
0001010010111111
0100000000000010
0001001001000001
0001001001100001
0001010010111111
0100000000000010
0011001100000001
1111000000100101
0000000000001000

Your assignment is to "decode" the instructions of this program into LC-2 instructions and to give some reasonable guess about the purpose of the program.

Assume that the program is loaded into memory at location x3000 and that a word of "input" data for the program is stored at location x3100. This input data is loaded from location x3100 on the first instruction of the program.

Giving credit where credit is due

This assignment is largely based on lab 1 for NCSU's ECE 206 course.