hw3 - Write a testbench that demonstrates the operation of...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
- 1 - 1. (20 points) Write a complete VHDL specification for a modified version of the calculator module described in the lecture notes. In this version, the clear, load and add inputs are replaced with a three bit operation signal. The calculator should respond to the operation operation specified action 000 do nothing 001 clear the data register 010 load the data register from dIn 011 negate the value in the data register 100 add dIn to the value in the data register 101 subtract dIn from the value in the data register 110 store the value in the data register to a separate memory register 111 transfer the value in the memory register to the data register Use a case statement in your VHDL module, instead of an if-then-else.
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Write a testbench that demonstrates the operation of your VHDL module. Make sure that you testbench causes every operation to be performed at least once. Think about how you might implement this version of the calculator on the S3 board. How would you use the switches and buttons to control the calculator inputs? Note that you still need to be able to control the data input to the calculator and the value that is displayed on the LEDs. Try to find a way of using the available controls that still makes the calculator reasonably easy to use. CSE 260 – Digital Computers: Organization and Logical Design Homework 3 Jon Turner Due 9/16/2010...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern