Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What type of reset does the following code use: module Matcher ( input logic clk , input logic Rst , input logic DataIn, output logic

What type of reset does the following code use:
module Matcher
(
input logic clk,
input logic Rst,
input logic DataIn,
output logic Error,
output logic Found
;
logic[8:0]cnt;
logic 2:0 dly;
always @(posedge Clk) begin
if ( Rst) begin
dly=0;
cnt ;
Error ;
Found 0;
end else begin
dly []DataIn;
dly [1]dly[0];
dly [2]dly[1];
cnt cnt +1 ;
if ( cnt ==128) begin
Error 1 ;
end else begin
Error 0;
end
if ( dly {:==3'b101) begin
Found 1;
end else begin
Found ;
end
end
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions