Download EE201L_divider_sp201..
Transcript
Division between DPU and Traditional division CU for HDL coding between DPU and CU I0 Y I1 S Y_Reg I0 Y I1 S Y_Reg I0 Y I1 S X_Reg DPU I0 Y I1 S X_Reg OFL (combinational logic) is moved to DPU. It is NOT coded explicitly. The OFL is implicit in the DPU’s RTL in the CASE statement. DPU OFL (combinational logic) is in the CU. OFL NSL OFL SM Current_State NSL SM Current_State CU REMINDER ACK QUOTIENT START DIVISOR DIVDND BTN#0 BTN#1 BTN#3 BTN#2 DIVISOR RESET DIVIDEND DONE Qd (DONE_S) Go through the files and download the provided bit file and test. Qc (COMPUTE) ee201_divider_simple Qi (INITIAL) CU Questions for the ee201_divider_simple design: A. What happens if you divide by zero? Is the behavior of the quotient digit display on SSD1 different if you attempt to divide 3 by 0 vs. if you attempt to divide F by 0. How about 0 divided by 0? B. If you improve the divider design to move from compute state to done state if X is equal or less than Y (instead of the current X less than Y), will the above behavior change? Does your answer to Q#1 above change? C. Why does the behavior of the next design (ee201_divider_with_debounce) appear to be quite different from this design? Is it just appearance only or is it really different? EE201L_divider_sp2011.fm 3/1/11 2/9 (C) 2011 Gandhi Puvvada