AMD 3200 Revision History - Page 8
Arithmetic, Logical, Operators
UPC - 730143241144
View all AMD 3200 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 8 highlights
Revision Guide for AMD Family 15h Models 00h-0Fh Processors 48063 Rev. 3.18 October 2012 • NBPMCxXXX[Y]: northbridge performance monitor events; XXX is the hexadecimal event counter number programmed into MSRC001_024[6,4,2,0][EventSelect] (NB_PERF_CTL[3:0] bits 7:0). Y, when specified, signifies the unit mask programmed into MSRC001_024[6,4,2,0][UnitMask] (NB_PERF_CTL[3:0] bits 15:8). Many register references use the notation "[]" to identify a range of registers. For example, D18F2x[1,0][4C:40] is a shorthand notation for D18F2x40, D18F2x44, D18F2x48, D18F2x4C, D18F2x140, D18F2x144, D18F2x148, and D18F2x14C. Arithmetic and Logical Operators In this document, formulas follow some Verilog conventions as shown in Table 1. Table 1. Arithmetic and Logic Operators Operator Definition {} Curly brackets are used to indicate a group of bits that are concatenated together. Each set of bits is separated by a comma. E.g., {Addr[3:2], Xlate[3:0]} represents a 6-bit value; the two MSBs are Addr[3:2] and the four LSBs are Xlate[3:0]. | Bitwise OR operator. E.g. (01b | 10b == 11b). || Logical OR operator. E.g. (01b || 10b == 1b); logical treats multibit operand as 1 if >=1 and produces a 1-bit result. & Bitwise AND operator. E.g. (01b & 10b == 00b). && Logical AND operator. E.g. (01b && 10b == 1b); logical treats multibit operand as 1 if >=1 and produces a 1-bit result. ^ Bitwise exclusive-OR operator; sometimes used as "raised to the power of" as well, as indicated by the context in which it is used. E.g. (01b ^ 10b == 11b). E.g. (2^2 == 4). ~ Bitwise NOT operator (also known as one's complement). E.g. (~10b == 01b). ! Logical NOT operator. E.g. (!10b == 0b); logical treats multibit operand as 1 if >=1 and produces a 1-bit result. == Logical "is equal to" operator. != Logical "is not equal to" operator. = Greater than or equal operator. * Arithmetic multiplication operator. / Arithmetic division operator. Shift right first operand by the number of bits specified by the 2nd operand. E.g. (10b >> 01b == 01b). 8 Conventions