Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

kindly give steps on how to implement the code that you will provide. please be sure not to copy paste the answer drom chat gpt

kindly give steps on how to implement the code that you will provide.
please be sure not to copy paste the answer drom chat gpt or anyothher ai. thankyou.
4- In this question, you will implement a sequence detector using state machines.
a) Assuming a single-bit input along with a valid signal that indicates the validity of the input data, and a single-bit output that indicates whether the sequence 10110110 has been observed or not, implement a structure that performs this task using a Moore state machine. Note that your code should consider overlapping; that is, if the input bit sequence is received as 10110110110 in 11 consecutive clocks, the output bit sequence should be sent as 000000001001.
b) By writing a testbench for this part, verify and validate the functionality of your circuit.
c) Repeat part a using a Mealy state machine, simulate it, and verify its functionality.
d) Synthesize both circuits, compare the synthesis results, and provide justification.
5- In this question, you will implement and simulate a simple receiver.
a) First, using MATLAB, generate a number of random 11-bit data. Then design a transmitter that, upon receiving each of these 11-bit data, adds appropriate parity bits and finally sends them in the form of 15-bit data. Finally, you should store these 15-bit data in a file. Also, store the initial 11-bit data in a file for later validation purposes.
b) Write a Verilog code that receives 15-bit data as input and, based on the parity bits, if the data reception process is correct, it places the 11-bit data on its output and sets the valid signal to high for one clock cycle. Otherwise, it discards the 15-bit data and increments the error output by one.
c) Now, write a testbench that reads the 15-bit inputs from the file saved in Part A and applies them to the structure in Part B. Write the output of the Part B module to a file. Then, in MATLAB or the testbench, compare the output of your module with the initial 11-bit data and verify the functionality of your circuit.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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