Docsity

Calculator Design - Functional Verification - Lecture Slides, Slides of Computer Science

Partial preview of the text

Download Calculator Design - Functional Verification - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

 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

 Input/Output description

c_clk

out_resp2<0:1>

req1_data_in<0:31>

req1_cmd_in<0:3> out_data1<0:31>

req4_cmd_in<0:3>

req3_cmd_in<0:3>

req2_cmd_in<0:3>

req4_data_in<0:31>

req3_data_in<0:31>

req2_data_in<0:31>

reset<0:7>

out_data4<0:31>

out_data3<0:31>

out_data2<0:31>

out_resp4<0:1>

out_resp3<0:1>

out_resp1<0:1>

calc_top

 Outputs

Response line definition

  • 0 - no response
  • 1 - successful operation completion
  • 2 - invalid command or overflow/underflow erro
  • 3 - Internal error Data
  • Valid result data on output lines accompanies response (same cycle)

 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 simula 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