

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Turn in the following (hardcopy in class or to my office, email to [email protected]):
Note: This specification is different from the simple processor you did in ECE 156A
For this homework, you are to design, simulate, and synthesize a simple processor. We will also introduce timing, and so you may want to let your processor perform faster by introducing a pipeline (use no more than a 4 stage pipeline – Decode, Read Registers, Compute, Store). If you do decide to include a pipeline, be sure you do not have any data hazards as learned in ECE 154.
HW 4 will be worth 30 points. 20 points will be distributed to correctness of your code and simulations. The last 10 points will be based on your circuit size and circuit performance. This will make HW 0 worth 5% of your total grade, HW 1-3 each worth 10% of your total grade, and HW 4 worth 15% of your total grade. The midterm is worth 20% and the final 30%.
Processor specifications:
o Operations Opcode: 01 Bits 10-9: 00 for addition, 01 for subtraction, 10 for bit-wise or, 11 for and Bits 8-6: target register Bits 5-3: source A register Bits 2-0: source B register target = A (operation) B o Conditions Opcode: 10 Bits 10-9: 00 for ==, 01 for <, 10 for >, 11 for != Bits 8-6: target register (00000000 if false, 00000001 if true) Bits 5-3: source A register Bits 2-0: source B register target = A (condition) B
When writing your test bench, be sure to comment what instruction you are executing, and what your expected result (if any) in data_out and ovr/und will be. Be sure to exercise each calculation and register as well. Finally, your test bench needs to account for register hold time and setup time, so don’t change your values directly at the clock edge (something a lot of students have had trouble with in their previous homework.
Timing:
When synthesizing in Design Compiler, before you optimize/map, specify a clock signal to your clk as you learned how to do in the tutorial. Each gate in class.db has a delay, so the timing report will provide you with the longest timing path in the design.
clock (input port clock) (rise edge) 0.00 0. input external delay 0.00 0.00 r inst[3] (in) 0.00 0.00 r U1160/Z (IVI) 0.88 0.88 f U977/Z (NR3) 8.04 8.92 r U1239/Z (AO1P) 0.35 9.27 f U995/Z (ND2I) 0.77 10.04 r add_28/A[0] (processor_DW01_add_9_0) 0.00 10.04 r add_28/U44/Z (ND2I) 0.28 10.32 f add_28/U72/Z (IVI) 0.25 10.57 r … (continues)
This report will tell you the data arrival time and your clock cycle. 5 points of this homework will be based on how fast your data arrives. In the tutorial, you learned how to specify a tighter clock constraint and let Design Compiler optimize it for timing by increasing area usage. Another option you can try is to spread your logic out over pipeline stages, but note this will also increase your area as you have to introduce storage elements for data that passes between stages.
The last 5 points will be based on your area, so do not just optimize for timing without concern for area. For example, an excellent timing but really bad area might result in 5 points for timing and 1 point for area, while lessening the area at the cost of worse timing might result in 4 points for timing and 4 points for area.