Write a model of a counter which counts in the sequence mentioned below. The counter should use behavioral modeling andacase statement. Develop a testbench to test it.The testbench should display the counter output in the simulator console output. Simulate usingthe clock period of10 units for 200 ns. 000, 001, 011, 101, 111, 010, (repeat 000).The counter will have an enable signal (SW2), a reset signal (SW1), and a clock signal (SW15). The output of the counter will be on LED2-LED0.
the module of the counter using Verilog:
// Code your design here
module design_count(en,clk,reset,q);
input clk,reset,en;
output reg [2:0] q;
assign ram[0]=0;// storing count
assign ram[1]=1;
assign ram[2]=3;
assign ram[3]=5;
assign ram[4]=7;
assign ram[5]=2;
reg [2:0] count;
assign q=count;
reg [2:0] i;
reg [2:0] ram [6];// random memory
always@(posedge clk, negedge reset)
begin
if(en)// enable when 1
begin
if(!reset)// reset when 0
begin
count<=0;
i<=0;
end
else
begin
i<=i+1;
count<=ram[i];// counting
if(i==5)
i<=0;
end
end
else
count<=3'bxxx;
end
endmodule
testbench:
// Code your testbench here
// or browse Examples
module test();
reg clk,reset,en;
wire [2:0] q;
design_count d1(en,clk,reset,q);
initial
begin
clk=0;reset=1;en=1;
#5 reset=0;
#10 reset=1;en=1;
#200 $finish;
end
initial
forever
#5 clk=~clk;
initial
begin
$dumpfile("dump.vcd");
$dumpvars(1);
end
endmodule
waveform:

Write a model of a counter which counts in the sequence mentioned below. The counter should...
Verilog! NOT VHDL Please
(4 pts) Write a behavioral Verilog module to implement a counter that counts in the following sequence: 000, 010, 100, 110, 001, 011, 101, 111, (repeat) 000, etc. Use a ROM and D flip-flops. Create a test bench for your counter design and run functional simulation in ModelSim.
(4 pts) Write a behavioral Verilog module to implement a counter that counts in the following sequence: 000, 010, 100, 110, 001, 011, 101, 111, (repeat) 000, etc....
Can anyone solve this? i dont understand? verilog
1. (30 pts) Design a mod-6 counter. A mod-6 counter updates its output per clock rising edge according to the following sequence: 000, 001, 010, 011, 100, 101 (then repeat the pattern....). en is enable control (synchronous high active), resetn is reset control (asynchronous low active signal to reset counting sequence to 000) Complete the following Verilog code: en module mod6(clock, resetn, en, z); zI2:0] clock resetn Endmodule
Design a counter that counts in the sequence assigned to you. 000, 011, 101, 111, 010, 110, (repeat) 000, ... Use D flip-flops, NAND gates, and inverters. Draw your circuit explicitly showing all connections to gate and flip-flop inputs. Explicitly means that you should draw in all wires, don’t just label the inputs and outputs. Show switches connected to the Preset and Clear inputs of the flip-flops. Use one switch for all clears and a separate switch for each preset....
It has four output patterns: 000, 001, 0111 Tho Te two control signals e counter counts when it is 1 and the counter pauses when it is 0 e counter "increases" (circulating through 000, 0011, 01, 111 and .....pping around) when it is 1 and go is 1. The counter "decreases" (circulating in a reversed pattern, ie., 1 1 11, 01 11, 0011, 0001, and wrapping around) when it is 0 and g0 is l The circuit can be constructed...
Finite state machine (FSM) counter design: Gray
codes have a useful property in that consecutive numbers differ in
only a single bit position. Table 1 lists a 3-bit modulo 8 Gray
code representing the numbers 0 to 7. Design a 3-bit modulo 8 Gray
code counter FSM.
a) First design and sketch a 3-bit modulo 8 Gray code counter
FSM with no inputs and three outputs, the 3-bit signal
Q2:0. (A modulo N counter counts from 0 to N −...
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...