CDA Documents

Showing 1 to 30 of 349

Creating Stored
Procedures and
Functions
L/O/G/O
Objectives
After completing this lesson, you should be able to
do the following:
Differentiate between anonymous blocks and
subprograms
Create a simple procedure and invoke it from an
anonymous block
Cre

CDA3101 Project 2: Pipeline Simulator
Due 7/8
I. Purpose
The primary purpose of this project is to help you understand the pipelining process for
a simple set of MIPS instructions. You will gain experience with basic pipelining principles, as
well as the

CDA3101 Project 1: MIPS Assembler
Due 6/5
I. Purpose
The primary purpose of this project is to help cement the concepts of the MIPS
instruction set and give you insight into how MIPS assembly programs are translated into
machine code. The secondary purpos

LECTURE 6
Multi-Cycle
Datapath and Control
SINGLE-CYCLE IMPLEMENTATION
As weve seen, single-cycle implementation, although easy to implement, could
potentially be very inefficient.
In single-cycle, we define a clock cycle to be the length of time needed t

LECTURE 6
Multi-Cycle
Datapath and Control
SINGLE-CYCLE
IMPLEMENTATION
As weve seen, single-cycle implementation, although easy to
implement, could potentially be very inefficient.
In single-cycle, we define a clock cycle to be the length of time
needed t

LECTURE 5
Single-Cycle
Datapath and Control
PROCESSORS
In lecture 1, we reminded ourselves that the datapath and control are the two
components that come together to be collectively known as the processor.
Datapath consists of the functional units of the

LECTURE 12
Virtual Memory
VIRTUAL MEMORY
Just as a cache can provide fast, easy access to recently-used code
and data, main memory acts as a cache for magnetic disk.
The mechanism by which this is accomplished is known as virtual
memory. There are two rea

CDA3101 Project 3: Cache Simulator
Due 8/3
I. Purpose
The purpose of this project is to exercise your understanding of caches of various sizes and
configurations, as well as the write policies of write-through and write-back.
II. Basic Description
You wil

CDA3101 Test 3 Review Problem Set
1. How many total bits are required for a four-way set associative cache with 32 KB of data and 2-word
blocks, assuming a 32-bit address?
2. Consider a direct-mapped cache with 1024 blocks and a block size of 16 words. To

CDA3101 Assignment 1
Due 6/1
Submissions are due by the beginning of class on the specified due date. Handwritten
or typed solutions are acceptable. If you do write your solutions by hand, be sure to
write clearly. If the grader cannot read your answer, t

LECTURE 1
Introduction
CLASSES OF COMPUTERS
When we think of a computer, most of us might first think of our
laptop or maybe one of the desktop machines frequently used in
the Majors Lab.
Computers, however, are used for a wide variety of applications,
ea

CDA3101 Test 3 Topics
Below is an outline of the major topics that may appear on the final test. Make sure you are
comfortable with all of the points below, as well as the exercises done in class and in the review
problem set. Also make sure that you are

AND
NAND
OR
XOR
NOT
Clocked NOT
Insert a new drawing canvas (Insert, Picture, New Drawing) and drag out of the one
above into the new one. You can of course cut and paste, but I find dragging while
holding CTRL down works better. Use autoshapes connectors

Jesse Lopez
CDA 3103
Homework 6
1) Consider the following fragment of C code: Write the code for MIPS, How many instructions are
executed during the running of your code? How many memory data references will be made
during execution?
for(i=0;i<=100;i+)
cf

Homework 4
Due Date: Oct 7 by 11:59pm
Suppose you are constructing a 3-bit counter using three D flip-flops and some
selection of gates. The inputs to the system are Reset (sets every output to
zero) and Inc (a signal to increment the counter). The output

MIPS Assembly
Why are we learning assembly
Comparing to higher level languages such as C,
assembly languages
are more difficult to write, read, and debug.
have poor portability Every processor has its
own assembly language. The MIPS code you
write is N

MIPS Coding
Loop example 4
10/8/16
Suppose we have three arrays, A, B, C, all of size 10. Now we want to
set C[i] = min(A[i], B[i]) for all 0<= i <= 9.
week04-3.ppt
2
Loop example 4
10/8/16
Suppose we have three arrays, A, B, C, all of size 10. Now we wan