Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Computer System Design 1. Consider a sorting circuit that accepts 8 numbers serially and outputs the sorted sequence serially. The sorting algorithm is the classic
Computer System Design
1. Consider a sorting circuit that accepts 8 numbers serially and outputs the sorted sequence serially. The sorting algorithm is the classic bubble sort algorithm. The port interface is as shown in the figure below. The data is presented serially with one data item for every pulse on Input valid signal. The sorted sequence should also be output, one data item for one pulse on Qutnut valid signal. You can assume that you have a register file for the data storage. You would have to map an array in the algorithm to the register file in the datapath Bubble Sort Data n Data out Figure 1: Port interface of the bubble sort circuit a) (10 pts) Write an algorithm that accepts the input sequence, sorts the sequence, and then outputs the sorted sequence. b) (10 pts) Based on the algorithm, derive an FSMD c) (10 pts) Using the FSMD, derive a data path and identify all control signals d) (10 pts) Show the port interface, next state and output functions of the controller. For the next state and output functions, symbolic states is accepted i.e., you need not perform state encoding e) (5 pts) Extra credit: If you optimize your FSMD for question (b) f) (5 pts) Extra credit: If you optimize your Datapath for question (c) Clearly justify the need for these NOTE: You are free to add any input and/or output signals. additional signals 1. Consider a sorting circuit that accepts 8 numbers serially and outputs the sorted sequence serially. The sorting algorithm is the classic bubble sort algorithm. The port interface is as shown in the figure below. The data is presented serially with one data item for every pulse on Input valid signal. The sorted sequence should also be output, one data item for one pulse on Qutnut valid signal. You can assume that you have a register file for the data storage. You would have to map an array in the algorithm to the register file in the datapath Bubble Sort Data n Data out Figure 1: Port interface of the bubble sort circuit a) (10 pts) Write an algorithm that accepts the input sequence, sorts the sequence, and then outputs the sorted sequence. b) (10 pts) Based on the algorithm, derive an FSMD c) (10 pts) Using the FSMD, derive a data path and identify all control signals d) (10 pts) Show the port interface, next state and output functions of the controller. For the next state and output functions, symbolic states is accepted i.e., you need not perform state encoding e) (5 pts) Extra credit: If you optimize your FSMD for question (b) f) (5 pts) Extra credit: If you optimize your Datapath for question (c) Clearly justify the need for these NOTE: You are free to add any input and/or output signals. additional signalsStep 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