Question: Convert the C-like code provided to a High-Level State Machine. Do not optimize or change the code, simply convert as provided. Using the RTL design

Convert the C-like code provided to a High-Level State Machine. Do not optimize or change the code, simply convert as provided. Using the RTL design method, convert the high-level state machine you designed to a Datapath and Controller. You do not need to provide the Controller's corresponding Boolean equations (i.e. you only need to provide the FSM). Note: Be sure to explicitly list all inputs, outputs, and local registers along their respective sizes in your design using as few bits as possible for each register. Inputs: a[256] (8 bits), go (1-bit) Outputs: max diff (1-byte), done (1-bit) MAX DIFF: while(1) { while(!go); done = 0; max- 0; min 255; while(i max )f max - a[i]; max diff = max-min; done 1; Convert the C-like code provided to a High-Level State Machine. Do not optimize or change the code, simply convert as provided. Using the RTL design method, convert the high-level state machine you designed to a Datapath and Controller. You do not need to provide the Controller's corresponding Boolean equations (i.e. you only need to provide the FSM). Note: Be sure to explicitly list all inputs, outputs, and local registers along their respective sizes in your design using as few bits as possible for each register. Inputs: a[256] (8 bits), go (1-bit) Outputs: max diff (1-byte), done (1-bit) MAX DIFF: while(1) { while(!go); done = 0; max- 0; min 255; while(i max )f max - a[i]; max diff = max-min; done 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
