Line 24... |
Line 24... |
//
|
//
|
//
|
//
|
// OpenArty comments:
|
// OpenArty comments:
|
// My goal on the OpenArty is going to be using the CPU to its fullest
|
// My goal on the OpenArty is going to be using the CPU to its fullest
|
// extent. All features shall be turned on if they exist, full pipelines,
|
// extent. All features shall be turned on if they exist, full pipelines,
|
// multiplies, divides, and hopefully even the 200MHz clock. This file
|
// multiplies, divides, and hopefully even the 162MHz clock. This file
|
// reflects that purpose.
|
// reflects that purpose.
|
//
|
//
|
//
|
//
|
// Creator: Dan Gisselquist, Ph.D.
|
// Creator: Dan Gisselquist, Ph.D.
|
// Gisselquist Technology, LLC
|
// Gisselquist Technology, LLC
|
Line 81... |
Line 81... |
// includes the multiply. (This parameter may still be overridden, as with
|
// includes the multiply. (This parameter may still be overridden, as with
|
// any parameter ...) If the multiply is not included and
|
// any parameter ...) If the multiply is not included and
|
// OPT_ILLEGAL_INSTRUCTION is set, then the multiply will create an illegal
|
// OPT_ILLEGAL_INSTRUCTION is set, then the multiply will create an illegal
|
// instruction that will then trip the illegal instruction trap.
|
// instruction that will then trip the illegal instruction trap.
|
//
|
//
|
|
// Either not defining this value, or defining it to zero will disable the
|
|
// hardware multiply. A value of '1' will cause the multiply to occurr in one
|
|
// clock cycle only--often at the expense of the rest of the CPUs speed.
|
|
// A value of 2 will cause the multiply to have a single delay cycle, 3 will
|
|
// have two delay cycles, and 4 (or more) will have 3 delay cycles.
|
//
|
//
|
`define OPT_MULTIPLY 1
|
//
|
|
`define OPT_MULTIPLY 3
|
//
|
//
|
//
|
//
|
//
|
//
|
// OPT_DIVIDE controls whether or not the divide instruction is built and
|
// OPT_DIVIDE controls whether or not the divide instruction is built and
|
// included into the ZipCPU by default. Set this option and a parameter will
|
// included into the ZipCPU by default. Set this option and a parameter will
|