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

  Database system for a database project

Choose a database system for a database project and write a 3.5 to 4 page paper on why you would choose (i.e. Oracle, Microsoft SQL Server, MySQL, etc.). As a deliverable for this step, provide a discussion of the DBMS you would select. Your discu..

  Determine the size and contents

Determine the size and contents of: e=1:-1:5;

  Determine gradient magnitude and gradient direction of image

Consider the sub-image. Determine gradient magnitude and gradient direction at center entry using following operators.

  What is the goal of encryption

What is the goal of encryption?

  Simulation: cpu scheduling algorithms comparison

Topic 1: SIMULATION: CPU SCHEDULING ALGORITHMS COMPARISON Overview: In this project, you'll implement and evaluate the following four different CPU scheduling algorithms by writing a CPU simulator. First Come First Serve (FCFS) The first come firs..

  Addition to the self-driving automobile

1. In addition to the self-driving automobile (which everyone will analyze), which other four Google technologies would you like to research for your Final Case Studies?

  Creating a database design in visio

Suppose a local college has tasked you to develop a database that will keep track of students and the courses that they have taken. In addition to tracking the students and courses, the client wants the database to keep track of the instructors te..

  Create at least one clustered index on every relation

Which factors would you consider in deciding whether to make an index on a relation a clustered index? Would you always create at least one clustered index on every relation?

  What is the role of the dba with respect to security

Explain how a company offering services on the Internet could use public-key encryption to make its order-entry process secure. Describe how you would use DES encryption for the same purpose, and contrast the public-key and DES approaches

  Define new derived volumetric objects as volumetric union

This same idea can be applied to a general CSG expression tree. (Note that a general CSG object may be non-convex and thus the intersection between a ray and a general CSG object may be composed of several intersection intervals.)

  Demonstrate an understanding of sql issues

Demonstrate an understanding of SQL issues: Illustrate the issues related to Web Technologies as a semi-structured data representation formalism:

  How many times is the datagram encapsulated

Suppose a datagram passes through N routers on a trip across an internet. How many times is the datagram encapsulated?

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