Write a function that implements such a converter

Assignment Help Basic Computer Science
Reference no: EM131412475

Function binary_to_gray

A binary-to-gray code converter was proposed in exercise 5.6. Write a function that implements such a converter, which should be constructed in the declarative part of the ARCHITECTURE (main code). In the code proper (architecture body), include a call to that function in order to test (simulate) it.
exercise 5.6:

Generic Binary-to-Gray Converter

The regular binary code, which consists of code words ordered according to their increasing unsigned decimal values, constitutes the most commonly used digital code. In some applications, however, gray code (Pedroni 2008), which is an UDC (Unit Distance Code) because any two adjacent code words di¤er by just one bit, might be preferred (in electromechanical applications, for example). This exercise deals with the design of a circuit capable of converting regular binary code into gray code.

a) Just to practice with gray code, make a table with two columns, placing the 16 four-bit binary entries in the first column, and the corresponding gray values in the second column.

b) In order to implement a generic converter, find a closed-form expression for binary-togray conversion. Use it to check your entries in the second column for part (a).

c) Write a VDHL code from which this converter can be inferred. Enter N (number of bits) as a GENERIC parameter, and use the closed-form expression obtained above to do the computations. Include simulation results in your solution.

Reference no: EM131412475

Questions Cloud

Determine the expected duration and variance for activity : 6-30 Sandy Edge is president of Edge File Works, a firm that manufactures two types of metal file cabinets. The demand for the  two-drawer model is 650 cabinets per week; demand for the three- drawer cabinet is 400 per week. Edge has a weekly oper..
Politics is driven by how people interpret informaion : Comment on the Debra Stone quote reprinted in the text: "Because politics is driven by how people interpret informaion, much political activity is an effort to control interpretations." What do you think of this idea that even information is politica..
List the endogenous and exogenous variables : List the endogenous and exogenous variables in the Beginning and Ending Balance Sheets, the Income Statement, and the Statement of Cash Flows.
Can your body make glucose from proteins and from fats : Can your body make glucose from proteins? from fats? Which fats are said to be healthier saturated or unsaturated? Why? Which cholesterol is said to be healthier, LDL or HDL? Why?
Write a function that implements such a converter : Write a VDHL code from which this converter can be inferred. Enter N (number of bits) as a GENERIC parameter, and use the closed-form expression obtained above to do the computations. Include simulation results in your solution.
What is political ideology : What is political ideology? (2) How would you describe your political ideology - not necessarily in terms of Democrat or Republican or Liberal or Conservative
What is your estimate of the number of meadow mice in field : You trap meadow mice in a hay field, and place ear tags on 45 individuals. A week later, you trap meadow mice in the same field, capturing 74 animals. Of these, 13 had ear tags. What is your estimate of the number of meadow mice in this field?
Discuss how the purpose of horses has changed over time : Discuss how the use/purpose of horses has changed over time and describe how the horse industry differs from the various livestock production animals we've discussed this term.
Government of canada securities : Why, in general, do investment opportunities offer a rate greater than that offered by Government of Canada securities for the same horizon?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  More of the databases for computer networks

Using one or more of the databases for Computer Networks and Cyber Security, search for peer-reviewed journal articles about the communication theory or by the name of the person you selected to see if communication research on that theory has be..

  Entering the number of days from your console

Write a program to find the answer for the following question: Entering the number of days from your console to obtain years, weeks and remaining days. Assume 1 year has 365 days.

  Describe the nature of the roots of the equation

Find the discriminant of each equation and describe the nature of the roots of the equation. Then solve the equation by using the Quadratic Formula.

  Staffing level requirements for project team

Describe in scholarly detail how you would use WBS as aid to finding staffing level requirements for project team?

  Derive necessary and sufficient conditions

Derive necessary and sufficient conditions for a continuous system (F, G, H) to be output controllable. Are output and state controllability related? If so, how?

  Rational zero theorem-descartes rule of signs

Use the Rational Zero Theorem, Descartes's Rule of Signs, and possibly the graph of the polynomial function shown by a graphing utility as an aid in obtaining the first root.

  Which protocol should be used udp or tcp

UDP is a message-oriented protocol. TCP is a byte-oriented protocol. If an application needs to protect the boundaries of its message, which protocol should be used, UDP or TCP?

  Which operations can be implemented reasonably efficiently

Can the database system be made more efficient by using one or more additional BSTs to organize the records by location?

  Perform all possible regressions

Perform all possible regressions. Did the variable selection algorithms find the best regression?

  How do i convert 82 to the 10th power to hex

How do I convert 82 to the 10th power to hex

  Determine probability that contention ends on round k

Determine the probability that a contention ends on round k, and what is a mean number of rounds per contention period?

  Four speed dial numbers to four

Grandma got a smart phone and needs help assigning the first four speed dial numbers to four of her 17 contacts. How many ways can the speed dial numbers be assigned?

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