Designed to a datapath and controller

Assignment Help Basic Computer Science
Reference no: EM131939698

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;

i = 0;

max = 0;

min = 255; // largest 8-bit value

while( i < 256 ) {

if( a[i] < min ) {

min = a[i];

}

if( a[i] > max ) {

max = a[i];

}

i = i + 1;

}

max_diff = max - min;

done = 1;

}

Reference no: EM131939698

Questions Cloud

Implementing office 365 sharepoint : Your company is implementing Office 365 SharePoint, Exchange Online and Skype for Business Online how will you conduct the following:
Prepare a power point to illustrate the process : Select either the experienced personnel or the new hires as your target audience. Using the description appropriate to that audience.
Produce an entity relationship diagram : Based on the case above, produce an Entity Relationship diagram (ERD) that models the problem which includes:
Relational database design : You are tasked to develop a database design for a retail company that involves shipping orders to customers. Order data includes an order date
Designed to a datapath and controller : Using the RTL design method, convert the high-level state machine you designed to a Datapath and Controller.
Report upon an incident possibly involving yourself : What could have been done to prevent or correct the situation? what measures could prevent a recurrence of such frozen evaluations?
Draw an rea diagram for the revenue cycle at abc : Draw an REA diagram for the revenue cycle at ABC. You should include all entities, relationships and cardinalities.
Why was the campaign successful : Can someone please describe a successful #hashtag campaign and what was the target issue and why was the campaign successful?
Encourage lack of data security or ethical oversight : Can please someone describe a recent event that displays how new media may encourage lack of data security or ethical oversight?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Java console and outputs the number of characters

Write a program that reads two words representing passwords from the Java console and outputs the number of characters in the smaller of the two. For example, if the two words are open and sesame, then the output should be 4, the length of the sho..

  Make a class for a singly linked circular list

Make a class for a singly linked circular list that has no end and no beggining. The only access on the list is a single reference, current, that can point to any link on the list.

  Write a visual logic program for an application

Write a visual logic program for an application that allows a user to enter the cost of home maintenance in each of the four seasons summer, fall, winter and spring and displays the total.

  What is the total market value of firm

What is the total market value of this firm? (Answer to the nearest dollar, but do not use a dollar sign).

  Difference between outsourcing and smart sourcing

Give an example of a business process that would be appropriate to consider for a firm's first venture into business process outsourcing. Give an example of an inappropriate business process.

  Advantage of the cash discount offer

Would you recommend borrowing from a bank at an 18% annual interest rate to take advantage of the cash discount offer? Explain your answer.

  Evaluate the megatrend of demographics in the it field

Give your opinion as to why IT managers must understand this megatrend when selecting talent for organizational positions.

  Compute the software maturity index for the system

The latest release required that 90 of these modules be changed. In addition, 40 new modules were added and 12 old modules were removed. Compute the software maturity index for the system.

  Draws a simple face of the given size in win

Write and test a function to meet this specificationdrawFace(center, size, win) center is a Point, size is an int, and win is a GraphWin. Draws a simple face of the given size in win

  Important to understand visitors

Explain why it is important to understand visitors to your site who are not your customers and visitors who do not return.

  Powerful programming tool than iteration

Attack or defend the following: "Recursion can solve problems that iteration cannot solve (such as recursion with backtracking) and so therefore

  Circuit implementing the expression

Let the cost of an expression be the total number of gates plus the total number of inputs of the circuit implementing the expression.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd