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.
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?
|