Using verilog create a component with the following connections: module alu(clk, control, A, B, result); clk...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Using verilog create a component with the following connections: module alu(clk, control, A, B, result); clk is an input clock signal (1 bit) control is a 1 bit input value A and B are 8 bit input values result is an 8 bit output value Inside the alu module without using the + operator set result to either: AB when control is 1. or A | B when control is 0 Hints: To do the addition make a 1-bit adder component and then connnect 8 of those adders to generate an addition result have an or result which is the result of doing a logical or on the input values then use a ternary operator to set result to one of the two calculation results. For the 1-bit adder you have: clock, the two input bits, carry in, the output bit and carry out. The logic for calculating the results of the 1-bit adder can be found here: https://www.geeks forgeeks.org/full-adder-in-digital-logic/ In case you are not familiar with digital circuitry A flat left side is an And gate (operation) A single curved left side is an Or gate A curved left side with a second curved line is an Xor gate. The following code can be used to drive the program: It will display the value of A then the control signal value, the value of B and then the output of the ALU. output below: 60 4 = 6 61 4 = 10 646 6410 6 0 4 = 6 646 30 4 = 7 347 31 6 = 9 3+69 30 6 = 7 36 7 Using verilog create a component with the following connections: module alu(clk, control, A, B, result); clk is an input clock signal (1 bit) control is a 1 bit input value A and B are 8 bit input values result is an 8 bit output value Inside the alu module without using the + operator set result to either: AB when control is 1. or A | B when control is 0 Hints: To do the addition make a 1-bit adder component and then connnect 8 of those adders to generate an addition result have an or result which is the result of doing a logical or on the input values then use a ternary operator to set result to one of the two calculation results. For the 1-bit adder you have: clock, the two input bits, carry in, the output bit and carry out. The logic for calculating the results of the 1-bit adder can be found here: https://www.geeks forgeeks.org/full-adder-in-digital-logic/ In case you are not familiar with digital circuitry A flat left side is an And gate (operation) A single curved left side is an Or gate A curved left side with a second curved line is an Xor gate. The following code can be used to drive the program: It will display the value of A then the control signal value, the value of B and then the output of the ALU. output below: 60 4 = 6 61 4 = 10 646 6410 6 0 4 = 6 646 30 4 = 7 347 31 6 = 9 3+69 30 6 = 7 36 7
Expert Answer:
Posted Date:
Students also viewed these marketing questions
-
Design three content-based signatures and three context-based signatures for use in an IDS. Name each signature and describe what the signature should look for, including traffic patterns or...
-
1. How strong are the competitive forces confronting J. Crew in the market for specialty retail? Do a [Michael Porter] five-forces analysis to support your answer. (see chapter 3 in the textfor...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Limits from graph In this problem we evaluate limits from the graph. Consider the graph of f given in [Figure 1]. Evaluate each of the following limits (or explain why if the limit does not exist)....
-
What are ES, EF, LF, and LS, and how are they calculated?
-
A wall surface on a house is at 30C with an emissivity of = 0.7. The surrounding ambient to the house is at 15C, average emissivity of 0.9. Find the rate of radiation energy from each of those...
-
Suppose that a Woodchuck logging machine can "chuck" (i.e., throw or hurl) 13 tons of wood an hour when freshly serviced, but that its performance decreases by 5 percent an hour until the next...
-
Allen Insurance Agency started the year with a beginning Retained Earnings balance of $24,500. During the year, Allen earned $34,000 of Service Revenue and incurred $22,500 of various expenses....
-
points) Seward Co, uses a perpetual inventory system. Assume GST at 5% and PST at 7%. The following selected transaction occurred: July 5 Sold to Football Co., merchandise with a cost of $3,900 for...
-
3. Consider the context-free grammar G, (where S is the start variable). SOA | OBO | OSO A - SO B-1B 1 I) Give a verbal description of the language generated by this grammar. II) Show that this...
-
(a) As of 2021, Earth's human population is roughly 7.9 109, and its total land area excluding the polar caps is roughly 5 107 square miles. If the human population were distributed uniformly over...
-
Lucido Products markets two computer games: Claimjumper and Makeover. A contribution format income s month for the two games appears below: Sales Variable expenses Claimjumper $ 51,300 34,200...
-
Tara Bates is your 4-year-old patient admitted to the pediatric unit with MRSA infection to the right inner thigh with plans for I and D tomorrow morning. You weigh Tara and find she is 32 lb and 9...
-
Two charges, one of charge q = 4q (labeled charge 1 in the diagram), and the other of charge q = q (labeled charge 2 in the diagram), are placed a distance d apart as shown in the below diagram. d...
-
Avicorp has a $14.6 million debt issue outstanding, with a 6.1% coupon rate. The debt has semi-annual coupons, the next coupon is due in six months, and the debt matures in five years. It is...
-
Suppose that the expected dividends to be paid one year from now by a broad market index equals $463 million. The appropriate discount rate for the market is 12% per annum with participants believing...
-
Following is the current balance sheet for a local partnership of doctors: The following questions represent independent situations: a. E is going to invest enough money in this partnership to...
-
Financial statements should reflect realistically the performance and position of an organisation, but most of the accountant's rules conflict directly with the concept of realism. Discuss.
-
Explain why financial reports prepared under the historical cost convention are subject to the following major limitations: inventory is undervalued the depreciation charge to the income statement...
-
Explain how each of the limitations in question 11 could be overcome.
Study smarter with the SolutionInn App