Professional Documents
Culture Documents
In Binary all the Signed Numbers have a '1' in the Most Significant Bit
(MSB) position which represents a negative number and a '0' in the
Most Significant Bit (MSB) position which represents a positive number.
So, as above, +2 = 0000 0010 and the 2's Complement is 1111 1110
which represents - 2.
In a 16 bit number system the Signed Numbers have a '1' in the Most
Significant Bit (MSB) position 1xxx xxxx xxxx xxxx which represents a
negative number. A '0' in the Most Significant Bit (MSB) position 0xxx
xxxx xxxx xxxx which represents a positive number.
Binary multiplication
0 x 0 = 0
0 x 1 = 0
1 x 0 = 0
1 x 1 = 1
Note that since binary operates in base 2, the multiplication rules we
need to remember are those that involve 0 and 1 only. As an example
of binary multiplication we have 101 times 11,
101
x1 1
101
x1 1
101
1010 <-- the 0 here is the placeholder
101
x11
101
1010
1111Binary division
is almost as easy, and involves our knowledge of binary
multiplication. Take for example the division of 1011 into 11.
11 R=10
11 )1011
-11
101
-11
10 <-- remainder, R
11
x 11
11
11
1001 <-- product of 11 and 11
1001
+ 10
1011 <-- sum of product and remainder
1Representation
2Motivation
3Example
4See also
5References
Biased codes are a way to represent values with a balanced number
of positive and negative numbers using a pre-specified number N as
a biasing value. Biased codes (and Gray codes) are nonweighted
codes. In XS-3, numbers are represented as decimal digits, and each
digit is represented by four bits as the digit value plus 3 (the "excess"
amount):
entity bcdxs3 is
port (
a : in std_logic;
b : in std_logic;
c : in std_logic;
d : in std_logic;
an : inout std_logic;
bn : inout std_logic;
cn : inout std_logic;
dn : inout std_logic;
w : out std_logic;
x : out std_logic;
y : out std_logic;
z : out std_logic
);
end entity bcdxs3;
Digital
Analog
Signal Analog signal is a continuous signal which
represents physical measurements.
Applications Thermometer
Digital
Analog
Bandwidth Analog signal processing can be done in real time
and consumes less bandwidth.
Impedance Low
Digital
Analog
Errors Analog instruments usually have a scale which is
cramped at lower end and give considerable
observational errors.
An Analog signal is any continuous signal for which the time varying
feature (variable) of the signal is a representation of some other time
varying quantity, i.e., analogous to another time varying signal. It differs
from a digital signal in terms of small fluctuations in the signal which are
meaningful.