Exam 2 Fall 2010 on Introduction to Digital Logic and Computer Design

# Exam 2 Fall 2010 on Introduction to Digital Logic and Computer Design

• Test Prep
• ChefLightningHawk2957
• 8

This preview shows page 1 - 3 out of 8 pages.

- 1 - 1. (10 points). The table at right shows a table with 5 rows and three columns with each column having a heading. Write a VHDL definition of a record type that would be suitable for representing one row of such a table. Assume that the xpos and ypos values are eight bit logic vectors and that the color value is a three bit logic vector. Use the column headings as the field names. Write a second VHDL type definition and a declaration for a signal called table that could be used to represent the table at right (you are not required to initialize table ). The VHDL function shown below returns a memory address associated with a given pair of xpos and ypos values. Let displayBuf be a VHDL array that represents a display buffer, in which each word is three bits wide. Write a VHDL assignment statement that uses the function to change the value of the word in displayBuf associated with table (3). xpos and table (3). ypos to table (3). color . function dbAdr(x, y: in std_logic_vector(7 downto 0)) returns std_logic_vector(15 downto 0) is begin return x & y; end dbAdr; xpos ypos color x20 x31 4 x66 x11 3 x47 x16 7 x18 x25 5 x12 x44 1 CSE 260 – Digital Computers: Organization and Logical Design Exam 2 Jon Turner 11/4/2010

Subscribe to view the full document.

- 2 - 2. (10 points) The testbench below does an exhaustive test of a combinational circuit that compares a pair of 2 digit BCD values and outputs the larger of the two. Show how you can
• Fall '09
• Control flow, The Return

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern