CS201 Lab: Design Sequential Adders & Subtractors

Objective of this lab:


	To investigate arithmetic circuitry. 
	Arithmetic circuits play a central role in the operation of a microprocessor.

Preparation


	Read lab lecture notes.

Lab Assignments

  1. Obtain the state table, state diagram, and functions of the following sequential design.
    Implement the design and verify the state table.
    Use the 4-bit Shift Register to store and display the result of
    	0011 
          + 0001 
          ------
            0100  


    Hand-In

  2. Obtain the state table, state diagram, and functions of the following sequential design.
    Implement the design and verify the state table.
    Use the 4-bit Shift Register to store and display the result of
    	0101 
          - 0011  
          ------
            0010  


    Hand-In

  3. Implement the following bit sequential Adder-Subtractor design.


    X and Y are two operand inputs and Z is for the control signal i.e. Z is the selection bit.
    When Z has value 0, the circuit is an adder, meanwhile, the D flip-flop should be initialized to 0 for each addition.
    When Z has value 1, it performs subtraction, meawhile, the the D flip-flop should be initialized to 1 for each subtraction.

    
            Test your Adder-Subtractor circuit on the following operations and 
       	use the 4-bit Shift Register to store and display their results.  
    
    	(Note:	Start from the least significant bit and 
    	remember to initialize the D flip-flop accordingly)
    
    	0001 + 0011 = ? 
    
    	0101 + 0010 = ? 
    
    	0101 - 0011 = ? 
    
    	0011 - 0101 = ? 
    
    

    Hand-In


Copyright: Department of Computer Science, University of Regina.