To help you get started with pre-layout simulation, I have prepared further Verilog example files which include the behavioural model for a simple CPU. A simple program is loaded into RAM which illustrates the processor operation. These files should provide the basis for a behavioural model of your CPU.
Further details of this example CPU are available on the Web.
To avoid problems later in the design process, files should be located as follows:
~/design/fcde/magic/cell_lib
This directory should contain the cell library files previously designed.
~/design/fcde/magic/design
This directory should contain the design files for this exercise. It should not contain any library cells or pad cells. You will need a special .magic file in this directory to allow your library cells (from the cell_lib directory) and also standard pad cells (from a central read-only location) to be properly referenced.
~/design/fcde/verilog/behavioural
This directory should contain the verilog files that make up the behavioural model for your design.
~/design/fcde/verilog/programs
This directory should contain the verilog "rom" files that contain the programs to test your design.
A script has been written to create these directories, to add the .magic file and to include the pre-defined pad library cells. Simply type
init_fcde_directories
The design exercise is to be tackled in groups of between three and five. The group may divide the work as it sees fit, but all members of the group should be kept active at all stages of the project.
The deliverables for the project are:
Further details of these deliverables are (or will be)
available on the Web.
Marks will be awarded for the following:
An appendix to the report should indicate how the project was managed
and how the tasks were divided amongst the members of the group. This
will aid in the adjustment of marks for the different group members.
This is essentially a group project, all group members must share
responsibility for the results, comments such as the following will not
be well received:
``I only designed it. If it doesn't work then it's his fault, he was
responsible for testing.''
``She didn't understand the interface we agreed upon.''
Information on layout, simulation and DRC of Magic designs can be found on the CAD Tools and Techniques home page. Information on simulation and hardware modelling with Verilog can be found on the same CAD Tools and Techniques home page. The full Magic Tutorial is always worth looking at, having lots of tips for advanced Magic usage. Cadence and Verilog manuals are available on-line via the cdnshelp help viewer. Iain McNally
1-2-2010
Marking & Report Writing
The report should clearly document all of the above, further marks
will be available for the quality of the documentation.
Additional Documentation