Professional Documents
Culture Documents
Notes
Structure
1.1
Introduction
1.2
1.3
1.2.1
1.2.2
Retail Merchandising
1.2.3
Philosophy of Merchandising
Merchandise Costs
1.3.2
Merchandise Quality
1.4
1.5
Summary
1.6
1.7
1.8
Key Terms
1.9
Further Readings
Objectives
After studying this unit, you should be able to:
1.1 Introduction
.
1. An AND Gate has two or more inputs and produces one output as follows:
output = 1 if all of the inputs are high, output = 0 if one or more of the inputs are low [1].
Amity Directorate of Distance and Online Education
Merchandise Management
Notes
2. An OR gate also has two or more inputs and produces one output as follows: output = 1 if
one or more inputs are high, output = 0 if all inputs are low [1]:
3. The inverter gate has one input and produces one output as follows: output =1 if input is
low, output = 0 if input is high [1].
4. The NAND gate has two or more inputs and produces one output as follows: output = 0
if all the inputs are high, output = 1 if any of the inputs are low [1].
Notes
5.
The NOR gate has two or more inputs and produces one output as follows:
output = 1 if all inputs are low, output = 0 if any of the inputs is high [1].
6. The Exclusive-OR gate always has two inputs only and produces one output as follows:
output = 1 when inputs are not similar, output = 0 when inputs are the same [1].
7. The Exclusive-NOR gate always has two inputs only and produces one output as
follows: output = 1 when inputs are both high or are both low, output = 0 when inputs are not
similar [1].
Merchandise Management
4. Boolean Algebra
Notes
Boolean algebra has similar rules to other algebras and these rules are used to manipulate the
expression at hand. Some of these basic rules are [2]:
One variable:
A.A=A
A+ A= A
One variable and 0 or 1:
A.0=0
A.1=A
A+0=A
A+1=1
DeMorgans Theorem:
(A + B) = A . B
(A . B) = A + B
Associative:
(A . B) . C = A . (B . C)
(A +B) + C = A + (B + C)
Commutative:
A.B=B.A
A+B=B+A
Distributive:
A .(B + C) = A . B + A . C
A + (B . C) = (A + B) . (A + C)
Note: OR operator is represented by the + symbol and has the lowest precedence. NOT
operator is represented by the symbol and has the highest precedence. AND operator is
represented by . symbol and is in the middle [2].
Canonical Forms
Since there are a finite number of boolean functions of n input variables, yet an
infinite number of possible logic expressions you can construct with those n input
values, clearly there are an infinite number of logic expressions that are equivalent (i.e.,
they produce the same result given the same inputs). To help eliminate possible
confusion, logic designers generally specify a boolean function using a canonical, or
standardized, form. For any given boolean function there exists a unique canonical
form. This eliminates some confusion when dealing with boolean functions. Actually,
there are several different canonical forms. We will discuss only two here and employ
only the first of the two. The first is the so-called sum of minterms and the second is the
product of maxterms. Using the duality principle, it is very easy to convert between
these two. A term is a variable or a product (logical AND) of several different literals. For
example, if you have two variables, A and B, there are eight possible terms: A, B, A, B,
AB, AB, AB, and AB. For three variables we have 26 different terms: A, B, C, A, B, C,
AB, AB, AB, AB, AC, AC, AC, AC, BC, BC, BC, BC, ABC, ABC, ABC, ABC,
ABC, ABC, ABC, and ABC. As you can see, as the number of variables increases, the
Amity Directorate of Distance and Online Education
Notes
We can specify any boolean function using a sum (logical OR) of minterms. Given
F248=AB+C the equivalent canonical form is ABC+ABC+ABC+ABC+ABC.
Algebraically, we can show that these two are equivalent as follows:
ABC+ABC+ABC+ABC+ABC = BC(A+A) + BC(A+A) + ABC
= BC1 +BC1 + ABC
= C(B+B) + ABC
= C + ABC
= C + AB
Obviously, the canonical form is not the optimal form. On the other hand, there is a
big advantage to the sum of minterms canonical form: it is very easy to generate the
truth table for a function from this canonical form. Furthermore, it is also very easy to
generate the logic equation from the truth table.
To build the truth table from the canonical form, simply convert each minterm into a
binary value by substituting a 1 for unprimed variables and a 0 for primed variables
Then place a 1 in the corresponding position (specified by the binary minterm value) in
the truth table:
1) Convert minterms to binary equivalents:
Check from pdf ch02
Merchandise Management
Notes
Finally, put zeros in all the entries that you did not fill with ones in the first step
above:
Table 14: Creating a Truth Table from Minterms, Step Two
Going in the other direction, generating a logic function from a truth table, is almost
as easy. First, locate all the entries in the truth table with a one. In the table above,
these are the last five entries. The number of table entries containing ones determines
the number of minterms in the canonical equation. To generate the individual minterms,
substitute A, B, or C for ones and A, B, or C for zeros in the truth table above. Then
compute the sum of these items. In the example above, F248 contains one for CBA =
111, 110, 101, 100, and 011.
Therefore, F248 = CBA + CBA + CBA + CBA + CAB. The first term, CBA, comes
from the last entry in the table above. C, B, and A all contain ones so we generate the
minterm CBA (or ABC, if you prefer). The second to last entry contains 110 for CBA, so
we generate the minterm CBA. Likewise, 101 produces CBA; 100 produces CBA, and
011 produces CBA. Of course, the logical OR and logical AND operations are both
commutative, so we can rearrange the terms within the minterms as we please and we
can rearrange the minterms within the sum as we see fit. This process works equally
well for any number of variables. Consider the function F53504 = ABCD + ABCD +
ABCD + ABCD. Placing ones in the appropriate positions in the truth table generates
the following:
Table 13: Creating a Truth Table from Minterms, Step One
Notes
The remaining elements in this truth table all contain zero. Perhaps the easiest way
to generate the canonical form of a boolean function is to first generate the truth table
for that function and then build the canonical form from the truth table. Well use this
technique, for example, when converting between the two canonical forms this chapter
presents. However, it is also a simple matter to generate the sum of minterms form
algebraically. By using the distributive law and theorem 15 (A + A = 1) makes this task
easy. Consider F248 = AB + C. This function contains two terms, AB and C, but they are
not minterms. Minterms contain each of the possible variables in a primed or unprimed
form. We can convert the first term to a sum of minterms as follows:
AB = AB 1 By Th4
= AB (C + C) By Th 15
= ABC + ABC By distributive law
= CBA + CBA By associative law
Similarly, we can convert the second term in F248 to a sum of minterms as follows:
C = C 1 By Th4
= C (A + A) By Th15
= CA + CA By distributive law
= CA1 + CA1 By Th4
= CA (B + B) + CA (B + B) By Th15
= CAB + CAB + CAB + CAB By distributive law
= CBA + CBA + CBA + CBA By associative law
The last step (rearranging the terms) in these two conversions is optional. To obtain
the final canonical form for F248 we need only sum the results from these two
conversions:
F248 = (CBA + CBA) + (CBA + CBA + CBA + CBA)
= CBA + CBA + CBA + CBA + CBA
Amity Directorate of Distance and Online Education
Notes
Merchandise Management
Working backwards to get the product of maxterms, we locate all entries that have a
zero result. This is the entry with A and B equal to zero. This gives us the first step of
G=AB. However, we still need to invert all the variables to obtain G=AB. By the duality
principle we need to swap the logical OR and logical AND operators obtaining G=A+B.
This is the canonical product of maxterms form. Since working with the product of
maxterms is a little messier than working with sums of minterms, this text will generally
use the sum of minterms form. Furthermore, the sum of minterms form is more common
in boolean logic work. However, you will encounter both forms when studying logic
design.
Notes
10
Merchandise Management
Notes
SUM
CARRY
An examination of the two expressions tells that there is no scope for further
simplification. While the first one representing the SUM output is that of an EX-OR gate,
the second one representing the CARRY output is that of an AND gate. However, these
two expressions can certainly be represented in different forms using various laws and
theorems of Boolean algebra to illustrate the flexibility that the designer has in
hardware-implementing as simple a combinational function as that of a half-adder. The
simplest way to hardware-implement a half-adder would be to use a two-input EX-OR
gate for the SUM output and a two-input AND gate for the CARRY output, as shown in
figure, it could also be implemented by using an appropriate arrangement of either
NAND or NOR gates.
The figure shows the implementation of a half-adder with NAND gates only.
11
Notes
The next step is to simplify the two expressions. We will do so with the help of the
Karnaugh mapping technique. Karnaugh maps for the two expressions are given in
Figure.
12
Merchandise Management
Notes
As is clear from the two maps, the expression for the SUM (S_output cannot be
simplified any further, whereas the simplified Boolean expression for Cout is given by
the equation
13
Notes
14
Merchandise Management
Notes
MULTIPLEXERS
A data selector, more commonly called a Multiplexer, shortened to "Mux" or "MPX",
are combinational logic switching devices that operate like a very fast acting multiple
position rotary switch. They connect or control, multiple input lines called "channels"
consisting of either 2, 4, 8 or 16 individual inputs, one at a time to an output. Then the
job of a multiplexer is to allow multiple signals to share a single common output. For
Amity Directorate of Distance and Online Education
15
example, a single 8- channel multiplexer would connect one of its eight inputs to the
single data output. Multiplexers are used as one method of reducing the number of logic
gates required in a circuit or when a single data line is required to carry two or more
different digital signals.
Notes
The Boolean expression for this 4-to-1 Multiplexer above with inputs A to D and
data select lines a, b is given as:
Q = abA + abB + abC + abD
In this example at any one instant in time only ONE of the four analogue switches is
closed, connecting only one of the input lines A to D to the single output at Q. As to
which switch is closed depends upon the addressing input code on lines "a" and "b", so
for this example to select input B to the output at Q, the binary input address would
need to be "a" = logic "1" and "b" = logic "0". Adding more control address lines will
allow the multiplexer to control more inputs but each control line configuration will
connect only ONE input to the output.
Then the implementation of this Boolean expression above using individual logic
gates would require the use of seven individual gates consisting of AND, OR and NOT
gates as shown.
4 Channel Multiplexer using Logic Gates
16
Merchandise Management
Notes
Multiplexers are not limited to just switching a number of different input lines or
channels to one common single output. There are also types that can switch their inputs
to multiple outputs and have arrangements or 4 to 2, 8 to 3 or even 16 to 4 etc
configurations.
17
Encoder
The Digital Encoder Unlike a multiplexer that selects one individual data input line
and then sends that data to a single output line or switch, a Digital Encoder more
commonly called a Binary Encoder takes ALL its data inputs one at a time and then
converts them into a single encoded output. So we can say that a binary encoder, is a
multiinput combinational logic circuit that converts the logic level "1" data at its inputs
into an equivalent binary code at its output. Generally, digital encoders produce outputs
of 2-bit, 3-bit or 4-bit codes depending upon the number of data input lines. An "n-bit"
binary encoder has 2n input lines andn-bit output lines with common types that include
4-to-2, 8-to-3 and 16-to-4 line configurations. The output lines of a digital encoder
generate the binary equivalent of the input line whose value is equal to "1" and are
available to encode either a decimal or hexadecimal input pattern to typically a binary or
B.C.D. output code.
Notes
Priority Encoder
The Priority Encoder solves the problems mentioned above by allocating a priority
level to each input. The priority encoders output corresponds to the currently active
input which has the highest priority. So when an input with a higher priority is present, all
other inputs with a lower priority will be ignored. The priority encoder comes in many
different forms with an example of an 8-input priority encoder along with its truth table
shown below.
18
Merchandise Management
Notes
From this truth table, the Boolean expression for the encoder above with inputs D0
to D7 and outputs Q0, Q1, Q2 is given as:
19
Notes
Then the final Boolean expression for the priority encoder including the zero inputs
is defined as:
Binary Decoder
A Decoder is the exact opposite to that of an "Encoder" we
looked at in the last tutorial. It is basically, a combinational type
logic circuit that converts the binary code data at its input into one
of a number of different output lines, one at a time producing an equivalent decimal
code at its output. Binary Decoders have inputs of 2-bit, 3-bit or 4-bit codes depending
upon the number of data input lines, and a n-bitdecoder has 2 n output lines. Therefore, if
it receives n inputs (usually grouped as a binary or Boolean number) it activates one
and only one of its 2n outputs based on that input with all other outputs deactivated. A
decoders output code normally has more bits than its input code and practical binary
decoder circuits include, 2-to-4, 3-to-8 and 4-to-16 line configurations.
A binary decoder converts coded inputs into coded outputs, where the input and
output codes are different and decoders are available to "decode" either a Binary or
BCD (8421 code) input pattern to typically a Decimal output code. Commonly available
BCD-to-Decimal decoders include the TTL 7442 or the CMOS 4028. An example of a 2Amity Directorate of Distance and Online Education
20
Notes
Merchandise Management
to-4 line decoder along with its truth table is given below. It consists of an array of four
NAND gates, one of which is selected for each combination of the input signals A and B.
21
Notes
Memory
22
Merchandise Management
moves from one state to another each time it is triggered. You can
Notes
It is constructed by feeding the outputs of two NOR gates back to the other
NOR gates input.
The inputs R and S are referred to as the Reset and Set inputs, respectively.
S=1 and R=0: The output of the bottom NOR gate is equal to zero,
Q'=0.
Hence both inputs to the top NOR gate are equal to one, thus, Q=1.
Hence, the input combination S=1 and R=0 leads to the flipflop being
set to Q=1.
23
S=0 and R=1: Similar to the arguments above, the outputs become
Q=0 and Q'=1.
S=0 and R=0: Assume the flipflop is set (Q=0 and Q'=1), then the
output of the top NOR gate remains at Q=1 and the bottom NOR gate
stays at Q'=0.
Similarly, when the flipflop is in a reset state (Q=1 and Q'=0), it will
remain there with this input combination.
Therefore, with inputs S=0 and R=0, the flipflop remains in its state.
Notes
We can summarize the operation of the RS-flipflop by the following truth table.
24
Merchandise Management
The fact that this configuration follows the function table can
Notes
25
Notes
outputs remain in the logic state they were in prior to this input
condition.
2. SET = 0 and RESET = 1 sets the flip-flop. Q and Q respectively
go to the 1 and 0 state.
3. SET =1 and RESET =0 resets or clears the flip-flop. Q and Q
respectively go to the 0 and 1 state.
4. SET = RESET = 0 is forbidden as such a condition tries to set
(that is, Q = 1 ) and reset (that is, Q = 1) the flip-flop at the same
time. To be more precise, SET and RESET inputs in the R-S flipflop
cannot be active at the same time.
The R-S flip-flop is also referred to as an R-S latch. This is because
any combination at the inputs immediately manifests itself at the
output as per the truth table.
7.2.2: J-K Flip-Flop
A J-K flip-flop behaves in the same fashion as an R-S flipflop
except for one of the entries in the function table. In the case of
an R-S flip-flop, the input combination S = R = 1 (in the case of a
flip-flop with active HIGH inputs) and the input combination S = R =
0 (in the case of a flip-flop with active LOW inputs) are prohibited.
In the case of a J-K flip-flop with active HIGH inputs, the output of
the flip-flop toggles, that is, it goes to the other state, for J = K = 1 .
The output toggles for J = K = 0 in the case of the flip-flop having
active LOW inputs. Thus, a J-K flip-flop overcomes the problem of a
forbidden input combination of the R-S flip-flop. Figures (a) and (b) respectively
show the circuit symbol of level-triggered J-K flip-flops
with active HIGH and active LOW inputs, along with their function
tables.
26
Merchandise Management
Notes
27
Notes
28
Merchandise Management
Notes
29
Notes
30
Merchandise Management
Notes
31
Notes
32
Notes
Merchandise Management
in Fig. 11.2(b), that the frequencies of the Q 0 , Q1 , Q2 and Q3 waveforms are f/2,f/4,
f/8 and f/16 respectively. Here, f is the frequency of the clock input. This implies that a
counter of this type can be used as a divide-by-2 N circuit, where N is the number of flipflops in the counter chain. In fact, such a counter provides frequency-divided outputs of
f/2N , f/2N 1 , f/2N 2 , f/2N 3 , f /2 at the outputs of the N th, (N 1)th, (N 2)th, (N 3)th,
first flip-flops. In the case of a four-bit counter of the type shown in Fig. 11.2(a), outputs
are available at f/2 from the Q0 output, at f/4 from the Q 1 output, at f/8 from the Q2 output
and at f/16 from the Q 3 output. It may be noted that frequency division is one of the
major applications of counters.
33
"IN" and "OUT" of the register, one bit at a time in either a left or
Notes
34
Merchandise Management
(FFA to FFD) have just been RESET (CLEAR input) and that all the
Notes
35
Notes
Note that after the fourth clock pulse has ended the 4-bits of
data (0-0-0-1) are stored in the register and will remain there
provided clocking of the register has stopped. In practice the input
data to the register may consist of various combinations of logic "1"
and "0". Commonly available SIPO IC's include the standard 8-bit
74LS164 or the 74LS594.
Serial-in to Serial-out (SISO)
This shift register is very similar to the SIPO above, except
were before the data was read directly in a parallel form from the
outputs QA to QD, this time the data is allowed to flow straight
through the register and out of the other end. Since there is only
one output, the DATA leaves the shift register one bit at a time in a
serial pattern, hence the name Serial-in to Serial-Out Shift
Register or SISO.
The SISO shift register is one of the simplest of the four
36
Merchandise Management
Notes
which determines what enters the left hand flip-flop, the serial
output (SO) which is taken from the output of the right hand flip-flop
and the sequencing clock signal (Clk). The logic circuit diagram
below shows a generalized serial-in serial-out shift register.
1.5 Summary
.
Merchandise
37
Notes