Preview

Digital Logic Assignment - Signed Multiplication

Satisfactory Essays
Open Document
Open Document
380 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Digital Logic Assignment - Signed Multiplication
ASSIGNMENT

Instructions:
The design tasks of this assignment are to be done in pairs. However, each student must write his/her own VHDL codes, simulation work and submit an individual report. Reports must be printed / written NEATLY.

Deadline:
21st January 2010 (Friday, week 13) by 4pm. Submit to Ms Lee YL (BR4027)

Signed multiplication can be performed with either a negative multiplicand or multiplier represented in 2’s complement by summation of partial product of the multiplicand and all the bits of the multiplier except the most significant bit (MSB), which is subtracted from the partial sum instead. As an example, 3 × –4 (represented by n=4 bits) are computed as follows:

0011 × 1100:

0 0 0 0 0011 × 0 0 0 0 0 0011 × 0 0 0 1 1 + 0011 × 1 0 0 1 1 0 0 0 0 1 1 – 0011 × 1 1 1 1 0 1 0 0 (product is –12, represented in 2’s complement)

A RISC machine performs the above-described signed integer multiplication of n by n bits using a multiplier with the following components:

1. An n-bit register stores the multiplicand. 2. An n-bit right-shift register stores the multiplier. 3. A 2n-bit accumulator shift register stores the product 4. An n+1-bit 2’complement adder 5. A counter to count the bits of the multiplier

The procedures to perform a 2’s complement multiply are as follows:

1. Bit counter and product accumulator register are cleared. 2. Add product of the multiplicand and rightmost bit of multiplier. 3. Shift accumulator register and multiplier register right 1 bit. 4. Decrement counter and repeat from step 2 if count is less than n – 1. 5. Subtract the product of the multiplicand and bit n – 1 of the multiplier.

Tasks:
a) Draw an ASM chart for the multiplier
b) Design the datapath.
c) Design the hardwired control unit using one flip-flop per state technique.
d) Write the VHDL code for your design.
e)

You May Also Find These Documents Helpful

  • Satisfactory Essays

    cout << "Select the operator you want to work (+ for addition, - for subtraction , * for multiplication , / for division):- ";…

    • 426 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pt1420 Unit 7 Study Guide

    • 582 Words
    • 3 Pages

    23. Write a program for finding product of two positive integers A and B by addition and bit…

    • 582 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    En1320 Unit 1 Research Paper 1

    • 27742 Words
    • 111 Pages

    The code in Figure 2-8 shows that even a simple operation, such as the addition of two…

    • 27742 Words
    • 111 Pages
    Powerful Essays
  • Better Essays

    Nt1310 Unit 1 Assignment

    • 1994 Words
    • 8 Pages

    5. Convert 32 decimal to binary floating point. Use a 6 bit mantissa and a 4 bit exponent.…

    • 1994 Words
    • 8 Pages
    Better Essays
  • Satisfactory Essays

    f) Diminished radix complement arithmetic requires an additional step of adding the carry bit to the result (in 9’s compliment).…

    • 1112 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Quiz Comp Archi

    • 438 Words
    • 3 Pages

    13) For each of the following 6-bit operations, calculate the values of the C, Z, V, and N flags in the ARM.…

    • 438 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    ECT114 Week3 Homework

    • 1022 Words
    • 15 Pages

    TP1 <= (A NAND B); TP2 <= (C OR D); Z <= (A NAND B) AND (C OR D);. Refer to the Week 1 Lecture for additional information on VHDL.…

    • 1022 Words
    • 15 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Today’s lecture will be spent entirely in the computer lab. At the end of lab, submit this worksheet.…

    • 581 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Ece241 Project

    • 583 Words
    • 3 Pages

    Recommended Design Techniques for ECE241 Project Franjo Plavec Department of Electrical and Computer Engineering University of Toronto DISCLAIMER: The information contained in this document does NOT contain official grading policy. The information provided here is based on my personal experience with ECE241 course projects in the previous years. Its purpose is to warn you of some common mistakes and answer some common questions student in earlier years had. As grading policies and project requirements change from year to year, please consult course web site or your instructor for official policies. THIS DOCUMENT MAY CONTAIN SOME MISTAKES. I will do my best to point those mistakes to you if I discover any, but I cannot make any guarantees. All information in this document is MY PERSONAL PREFERRED WAY OF DOING VARIOUS TASKS RELATED TO HARDWARE DESIGN. It is by no means the only possible way to perform these tasks. Also, this document does not cover, nor does it attempt to cover all aspects of various problems discussed. Therefore, you should not make any implications on aspects of the problems not mentioned in this document. In other words, if the document states X, and you try to do Y, which is “very similar to X”, do not assume that statements this document makes for X necessarily hold for Y. CHECK YOUR ASSUMPTIONS against your textbook, course notes, your instructor’s and/or TA’s advice, compilation and simulation results from Quartus, and finally, common sense. Verilog and Quartus Issues When using Verilog for the first time in a real project, users are often tempted to use fancy features of the language to make their lives easier. Unfortunately, if one succumbs to those temptations, they usually make their lives harder. The main reason for that is that Verilog, the way it is used in ECE241 labs and the way Quartus II interprets it, is not a programming language. Verilog is a hardware description language, meaning that various blocks of code directly map into…

    • 583 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 3 Student

    • 1264 Words
    • 7 Pages

    Step 4: Write the exact output you would expect from the following line of code if the user of the program enters a name of Nolan Owens and they have taken 20 credits so far. (Reference: Displaying Items, page 40 – 41).…

    • 1264 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    Figure 1: Overall Block Diagram The goal of this project is to provide you with a more practical hands-on approach to computer architecture design problems. The processor complex you will be designing is a 32-bit version of the MIPS processor; however, the instruction set will be a small subset of the actual MIPS ISA. You should implement the end to end operation of the complex utilizing the VHDL hardware descriptive language. You may use any constructs within the VHDL language, however, the design must be of your own. Copying of any form from any other student or any internal or external sources is illegal and will not be accepted. The processor supports the three instruction formats: R-format, I-format, and J-format as described in the text book and lectures. Table I Summarizes the core set of instructions for your ISA. The memory is assumed to be byte addressable and each word is 32 bits.…

    • 1082 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Ansel Adams, a photographer born in San Francisco in 1902, is now one of the most appreciated photographers today. Adams however began his young life as a musician, playing the piano. However, that all changed when he was 14 years old and convinced his parents to take a family vacation to Yosemite National Park. It was then that his parents gave him his first box Brownie camera, and he took his first pictures. He also discovered his love for nature and especially photographing it. He became very well known for his photographic talent and in 1932, Adams along with Imogen Cunningham, Willard Van Dyke, Edward Weston, and other advocates of pure photography, founded the Group f/64 in which they all became respected as naturalists. "Rose and Driftwood," one of Ansel Adams' well known pieces of art, expresses his love for nature as well as simplicity. What makes this print truly beautiful is the high contrast and large depth of field that Adams combined to draw the viewer in.…

    • 531 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    The "pseudocode" for such an algorithm is: while the number is bigger than one keep dividing it by two. Additionally keep a count of how many times we do the division.…

    • 391 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode.…

    • 345 Words
    • 2 Pages
    Satisfactory Essays