Download Application Note - Bound-T time and stack analyser
Transcript
ADSP-21020 registers, instructions, or other features Decoding Control flow Definition Arithmetic Table 8: Synopsis of ADSP-21020 Support R0 .. R15: fixed point, + + + + + + + + Equivalent to zero. Index registers I0 .. I15, except bit-reverse + + + + M0 .. M15 + + + + The C Calling Protocol requires some M and L registers to hold constants. + + + + Condition codes: EQ, LT, LE, AC, NE, GE, GT, NOT AC + + + + NOP and IDLE instructions + + + + The idling time is not considered. + + + Index register I0 .. I7 bit-reverse operations + + + F0 .. F15, floating point, all operations + + + Condition codes other than the above + + + The use of circular buffers + + + Reading (via Universal Register address): PC, PCSTK, PCSTKP FADDR, DADDR, LADDR CURLCNTR, LCNTR + + + System registers read or written via Universal Register address, or modified by system-register bitmanipulation: MODE1 (not alternate register bits), MODE2 ASTAT (see above for flags) STKY, IRPTL, IMASK, PMWAIT, DMWAIT + + + Alternate (secondary) registers as controlled by MODE1 bits. Memory access with index register I0 in bit-reversed mode as controlled by MODE1 bit BR0. + + Assignment (via Universal Register address) to: PCSTK, PCSTKP, LADDR, CURLCNTR, LCNTR. Push or pop of loop stack or status stack. + R0 .. R15: XOR addition, subtraction when both operands are the same Remarks register L0 .. L15 B0 .. B15 ASTAT flags AZ, AN, AC R0 .. R15, fixed point: multiplication, shift, average AND, OR, NOT, CLIP XOR for two different registers Instructions for later SHARC processors 26 Supported ADSP-21020 features If the operation sets a flag to a constant (usually zero), then the flag is supported for arithmetic, too. Instructions that store values in PMWAIT and DMWAIT have no effect on the number of memory wait states assumed for instruction timing; that assumption is set by the commandline options -xxx_ws . An assignment to MODE1 will generate a warning message. The possible effect on control-flow is not modelled. A warning message is generated. Only ADSP-21020 instructions are supported and decoded. Other instructions lead to error messages. Bound-T for ADSP-21020