User`s manual

5-4 Suite56 DSP Tools User’s Manual Motorola
How do I halt in mid-cycle in a Suite56 simulator?
Example 5 -1. Setting Low Frequencies in Suite56 Tools
> host clock ‘32 ; sets the frequency to 32 kilo herz
> host clock 32 ; sets the frequency to 50 kilo herz
5.6 How do I halt in mid-cycle in a Suite56 simulator?
Generally, execution does not halt in mid-cycle in the Suite56 simulators. However,
control-C entered as a command interrupts on an instruction boundary. In certain very
special cases, this command may meet your needs.
For customers who require a compiled version of a Suite56 simulator (e.g., for use in
Verilog models), there is a specialized function,
dsp_execp,tohaltonaclockphase.
Example 5 -2 shows you its signature.
Example 5 -2. Signature of dsp_execp
#if BLM
/* this function is similar to dsp_exec, except that it executes just a
single clock phase rather than an entire device cycle
*/
int
dsp_execp (int devindex)
The usual dsp_exec call is actually made up of a series of calls to internal phase
functions. Example 5 -3 shows you that function as it is implemented in
simutil.c.
Example 5 -3. The Function dsp_exec
void
dsp_exec (int devindex)
{
if ((devindex < 0) ||
(devindex >= dv_const.maxdevices) ||
!(dv_var = dv_const.sv[devindex]))
{
return;
}
if (!dv_var)
return;
dsp_exec_t0_pos(devindex);
dsp_exec_t0_neg(devindex);
dsp_exec_t1_pos(devindex);
(void)dsp_exec_t1_neg(devindex);
}