Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Element Search ( 1 5 % ) In this assignment you are requested to design a HLSM for a digital system that receives an array
Element Search
In this assignment you are requested to design a HLSM for a digital system that receives an array of ten bit unsigned numbers ie A:: and finds the location of the first element before which all the elements are smaller than it and after which all are greater. The output location is bit and will be between and when an element is found. However, if no such element is found, then the output location is set to
For example, if the array contents are: then there are two elements that satisfy the search criteria ie and Since the system is supposed to return the location of the first element that satisfies the search criteria then the output location should be Another example, if the array contents are: then none of the elements satisfies the search criteria and the output location should be
The following block diagram shows the inputs and outputs of vour svstem:
At "Reset", the system should asynchronously proceed to an INITIAL state and wait for the "Start" signal to become active.
In the INITIAL state, the input array A must be stored in an internal array "Ain" such that AinAin and so on
Once the "Start" signal is active, the system proceeds to traverse the values within "Ain" to find the first element that satisfies the search critieria.
After the search is complete, the system proceeds to the DONE state and remains until the "Ack" signal becomes active, at which time the system returns back to the INITIAL state.
You should design and test two versions of this system as described by the submission details below.
Here is what you need to submit:
MooreSearchIDIDIDv: This Verilog file should include your RTL design of the system implemented as a Moore machine. Your control unit CU and data path unit DPU must be implemented using a single always procedural block. Notice that the file name must include the students' IDs.
P P ge
MealySearchIDIDIDv: This Verilog file should include your RTL design of the system implemented as a Mealy machine. Your control unit CU and data path unit DPU must be implemented using a single always procedural block. Notice that the file name must include the students' IDs.
Searchtbv: This Verilog file should serve as a testbench that instantiates the two versions of the system, initializes the array and passes it as input to the two instants. The test bench should print the total number of clock cycles ignoring the cycles spent in the INITIAL and DONE states and the output location for the two versions.
Testing Hints:
When testing and evaluating your designs, you should try the worstcase scenario ie the element at location is the only element that satisfies the search criteria the bestcase scenario ie the element at location satisfies the search criteria and any other corner cases you can think of
Submission Deadline
Monday January @MOf
You must submit your files threugh Microsoft Teans as a single compressed file.
Group size can be one, two, or three students and each group must submit one set of files.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started