Calculator Design - PowerPoint PPT Presentation

1 / 6
About This Presentation
Title:

Calculator Design

Description:

Title: PowerPoint Presentation Author: IBM_User Last modified by: IBM_User Created Date: 8/13/2001 7:34:05 PM Document presentation format: Custom Company – PowerPoint PPT presentation

Number of Views:13
Avg rating:3.0/5.0
Slides: 7
Provided by: IBMU183
Learn more at: https://www.cse.psu.edu
Category:

less

Transcript and Presenter's Notes

Title: Calculator Design


1
  • Calculator Design
  • Calculator has 4 functions
  • Add
  • Subtract
  • Shift left
  • Shift right
  • Calculator can handle 4 requests in parallel
  • All 4 requestors use separate input signals
  • All requestors have equal priority

2
  • Calculator design
  • Input/Output description

c_clk
req1_cmd_inlt03gt
out_resp1lt01gt
req1_data_inlt031gt
out_data1lt031gt
out_resp2lt01gt
req2_cmd_inlt03gt
calc_top
req2_data_inlt031gt
out_data2lt031gt
req3_cmd_inlt03gt
out_resp3lt01gt
req3_data_inlt031gt
out_data3lt031gt
req4_cmd_inlt03gt
out_resp4lt01gt
req4_data_inlt031gt
out_data4lt031gt
resetlt07gt
3
  • Calculator Design
  • I/O Description
  • Input commands
  • 0 - No-op
  • 1 - Add operand1 and operand2
  • 2 - Subtract operand2 from operand1
  • 5 - Shift left operand1 by operand2 places
  • 6 - Shift right operand1 by operand2 places
  • Input Data
  • Operand1 data arrives with command
  • Operand2 data arrives on the following cycle

4
  • Calculator Design
  • Outputs
  • Response line definition
  • 0 - no response
  • 1 - successful operation completion
  • 2 - invalid command or overflow/underflow error
  • 3 - Internal error
  • Data
  • Valid result data on output lines accompanies
    response (same cycle)

5
  • Calculator Design
  • Other information
  • Clocking
  • When using a cycle simulator, the clock should be
    held high (c_clk in the calculator model)
  • The clock should be toggled when using an event
    simulator
  • Calculator priority logic
  • Priority logic works on first come first serve
    algorithm
  • Priority logic allows for 1 add or subtract at a
    time and one shift operation at a time

6
Calculator Design
  • Input/Output timing

req1_cmd_inlt03gt
req1_data_inlt031gt
out_resp1lt01gt
out_data1lt031gt
Write a Comment
User Comments (0)
About PowerShow.com