CSSE 232 - Computer Architecture I
Rose-Hulman Institute of Technology
Computer Science and Software Engineering Department
Exercise 5 -- Exploring Xilinx
- Download
alu.zip
.
- Create a folder named alu in your projects folder
and extract alu.zip into it.
- Start the Xilinx Project Navigator and open the alu project.
- Double-click on alu (alu.sch).
- In the schematic tool, select the part labeled
alu1b.
- ``Push'' into the part using the
button.
- ``Push'' into the part labeled add1b.
- Go back to the Project Navigator and double-click on
alutest (alutest.tbw). Adjust the wave form as necessary
to fully test the ALU.
- Go back to the Project Navigator. With alutest
(alutest.tbw) still highlighted, go down to the lower left pane
and expand the
next to Modelsim Simulator. Double-click on
Simulate Behavioral Model.
- Are the outputs correct?
- Modify the 1-bit ALU so that it is capable of subtraction.
- Modify the schematic alu1b.sch as necessary to
support subtraction. You will need to add a new control signal
(use an I/O marker) to the 1-bit ALU. Call it binv.
Save your changes.
- In the schematic alu.sch select the part labeled
alu1b, right-click and select
Symbol
Edit Symbol. Edit the symbol using
Add
Pin and Add
Line to
include the new control signal. Save your changes.
- Back in the schematic alu.sch select
Edit
Update Obsolete Symbols and add an I/O
marker for the new pin. Save your changes.
- Test your new 1-bit ALU.
- Copy alu1b.sch to alu1bmsb.sch and add it to
your project.
- Modify the 1-bit ALU for the most significant bit (MSB) to
include an overflow detector. You will need to add an overflow
output.
- Test your overflow detector.
- Modify alu.sch so that it contains a 4-bit ALU.
- Test your 4-bit ALU.
J.P. Mellor
2004-09-22