Digital Logic Computing Event Process Clock Signal
Digital Logic Computing Event Process Clock Signal
In digital logic and computing, a counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship to a clock signal. up/down counter is a combination of up counters and down counters that allows you to increase and decrease values by an increment of 1. A synchronous 4-bit up/down counter built from D- flip flops. Depending on the logic value on the Up/Down input (U/D), the counter will increment or decrement its value on the falling edge of the clock signal. The additional enable input enables (1) or disables (0) counting.
Objective: 1. Implement 9 states up down counter using MSI design concept. 2. Verify the design with waveform file generated from simulator. Equipment & Program: 1. Paper and pen 2. Altera Quartus II 8.1 Web Edition
State Table was tabulated from state diagram and D-FF input column was mapped using excitation table as below: Table 2 Excitation table of D-FF
PS(Q) W 0 0 0 0 0 0 0 0 1 X 0 0 0 0 1 1 1 1 0 Y 0 0 1 1 0 0 1 1 0 Z 0 1 0 1 0 1 0 1 0 W 1 0 0 0 0 0 0 0 0 U/D = 0 X Y 0 0 1 1 1 1 1 0 1 0 0 1 0 1 0 0 0 0
Min-term list was obtained by collecting all 1s from column D+ for both U/D = 0 and 1: DW+ = 0, 10, 12,14,16 DX+ = 1,2,3,4,17 DY+ = 1,2,5,6,13,14,15,16 DZ+ = 1,3,5,7,11,12,15,16
Figure 2
1-bit decoder
Cascading of 2-bit decoders to 4-bit decoder was done, resulting signal diagram is shown in Figure 4. It was verified to be correctly implement logic of 4-bit decoder.
Cascading of Cascading of 4-bit decoders and 1-bit decoder to 5-bit decoder was done, resulting signal diagram is shown in Figure 7.
D-latch and D-FF was build instead of using build in D-FF provided by Quatus II.
Figure 9 D-latch
Figure 10 D-Flip-flop
Finally all logic bloks are combined to realize 9 states up down counter.
Figure 11
Discussion: Each D-FF has 2 states that are on and off. This means N number of D-FF has 2^N states. The required counter needs to support up to 9 states. Since, 9 is fall between 2^4 and 2^3, so at least 4 D-FF is needed for counter to have 9 states. 1st step of realizing the design is prepare states diagram for required 9 states counter. The corresponding state table was prepared. D-FF input was mapped by using excitation table of D-FF. Input of D-FF, D can be implemented using decoder, alternately using logic gates. The choice of using decoder is due to simplicity. 5 to 32 decoder is need because 9 states counter has 1 input (U/D) and 4 internal D-FF feedbacks. The decoder provides 32 min-terms, which can provide sufficient min-term list for the designed counters D-FF input. These required min-term is collected using or-gate.
Require logic block such as decoder and D-FF was build using much simpler logic blocks. These simple logic blocks was build using primitive logic gates which were then cascaded to large logic block to provide more function. The rationale of using cascading is due to the productivity and simplicity of design, because much more cost effective and higher performance logic can be build using transistor level of design.
Conclusion: Design using cascading of logic blocks is successful and its a way to produce required logic with higher productivity than complete gate level design which requires much more wiring by naturally. Decoder is an alternative for generating min-term list instead of logic gates resulted from k-map. Decoder design simplified wiring and time required to perform k-map minimization.