Solution:
Truth Table
Present state |
S | E |
Next state |
d | 1 | 1 | 000 |
d | 1 | 0 | 000 |
000 - 111 | 0 | 0 | 000-111 |
000 | 0 | 1 | 001 |
001 | 0 | 1 | 010 |
010 | 0 | 1 | 011 |
011 | 0 | 1 | 100 |
100 | 0 | 1 | 101 |
101 | 0 | 1 | 110 |
110 | 0 | 1 | 111 |
111 | 0 | 1 | 000 |
The design is implemented using the Verilog HDL Language
//------------- Code Starts Here --------------//
`timescale 1ns / 1ps
module counter(S,E,clk,count
);
input S,E,clk;
output reg [2:0] count;
always @(posedge clk) begin
if(S==1)
count<=0;
else begin
if(!E)
count<=count;
else
count<=count+1;
end
end
endmodule
//----------------------- END ----------------------//
N.B: Please copy the code save it (in a .v file) and simulate using the VERILOG simulator to have the best results.
Design a 3 bits binary counter that count up from 000 to 111 and recycles according to the following specification: E i...
Up-Down counter with enable using JK flip-flops: Design, construct and test a 2-bit counter that counts up or down. An enable input E determines whether the counter is on or off. If E = 0, the counter is disabled and remains in the present count even though clock pulses are applied to the flip-flops. If E= 1, the counter in enabled and a second input, x, determines the count direction. If x= 1, the circuit counts up with the sequence...
Draw Finite State Machine for 3 bits counter that can count from 000 to 111 and implement it using D flip flop.
Design (and then verify your design by simulating it) a two-bit counter that counts up or down. Use an enable input E to determine whether the counter is on or off: if E = 0 the counter is disabled and remains at its present count even if clock pulses are applied. If E = 1, the counter is enabled and a second input, x, determines the direction of the count: if x = 1 the circuit counts upward 00, 01,...
(a) Design an asynchronous Binary Coded Decimal (BCD) count-up counter using JK flip-flops. Draw the counter circuit clearly showing the configuration of the JK flip-flops and the necessary logic gate(s). Sketch the input and output waveforms of this counter (7 Marks) (b) The binary up/down counter for a cargo lift controller in a 7-storey building has an up-down (UID) control input and a buzzer output (B). The buzzer will sound B 1) when the lift is at level 1 or...
Design a two-bit up/down binary counter using D flip-flops that can count in binary from 0 to 7. When the control input x is 0, the circuit counts down, and when it is 1, the circuit counts up. (a) Obtain the state table of the two-bit counter. (b) Obtain the state diagram (c) Draw the logic diagram of the circuit.
1) Design a synchronous 3-bit binary UP/DOWN counter uses the following counting pattern 10.2.3.7.6.40.1.3...) the counter will count in this pattern indefinitely when the input X is equal to 1. When the input the counter will reverse direction and count in the opposite pattern 0. 4 7310) Complete the state diagram, transition table, New state s and solve for the recitation equations for flipflops that will perform this function. (You do not need to draw the flip-flops Use the state...
Use a behavioral Verilog model to design a 3-bit fault tolerant up-down counter. For each flip-flop (FF) include asynchronous reset and preset signals. Refer to Example 4.3 on page 160 for an example of a single FF with both reset and preset signals as well as with an enable signal. For this project, you don't need to use FFs with enables. You don't also need not-q (nq) in this assignment. Use active-high signals for reset and present signals. The example...
Design a synchronous counter that counts up 0, 1, 2, 3, 0, 1, 2, 3, ... when an input x = 1, and down when x = 0 using (a) D flip-flops. (b) J-K flip-flops. You need to show the state definition table, the state transition diagram, the state transition table, the K-maps for the respective logic functions and the schematic of the implementation using flipflops and logic gates in (a) as well as the K-maps for the logic functions...
Design a counter to count-up from 2 to 5 using 3 D Flip-Flops similar to the following sample: Important Steps: After you simplify D2, D1 and DO by kmap Have a piece of paper to draw it then open iCircuit to design it using BCD If it works well as a counter, copy the design from iCircuit and paste it here. 3-Bit Counter Using D Flip-Flop: The State Equation of D Flip-Flop: Q(t+1)=D(t) => Dn=An Count Up From 3 To...
Q2) 4-bit Synchronous Counter Using Proteus, design Synchronous 4 bit Up binary counter using JK flip flops (Use 74HC76 JK flipflop). The circuit count from 0000 to 1111, etc. Experiment procedure: طريقة اجراء التجربة a) Complete the circuit. You can use external gates based on the following conditions: o Flipflop A switches every clock. o Flipflop B switches when the output of flipflop A=1 o Flipflop C switches when the outputs of A-B=1 o Flipflop D switches when the outputs of A=B=C=1 b) What is the typical feature of...