Declare an entity called seven_segment_agent with the following generic configu- ration parameters: Parameter lamp_mode decimal_support...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Declare an entity called seven_segment_agent with the following generic configu- ration parameters: Parameter Туре lamp_mode decimal_support boolean implementer lamp_configuration revision natural natural Description Configuration of the lamps in the seven segment dis- plays. Defaults to default_lamp_config. Set to true to build decoder with support for showing decimal numbers. Defaults to true. A number between 1 and 255 which determines the implementer of the core. Each group will have a unique number. A number between 0 and 255 which indicates the revi- sion of the core. Must be set to 0. The following port interfaces must also be available. Parameter Type Direction Description Clock signal. Active low synchronous reset signal. Address bus. Must be 2 bit wide. Active high signal indicating a read transac- tion. clk reset_n address read readdata write writedata lamps std_logic in std_logic in std_logic_vector in std_logic in std_logic_vector std_logic out in std_logic_vector in std_logic_vector out Read data bus. Must be 32 bit wide. Active high signal indicating a write transac- tion. Write data bus. Must be 32 bit wide. Lamps output. Must be 42 bit wide. 2. (3 pts): Start the implementation of the architecture of the seven_segment_agent entity. Declare two 32 bit signals of type std_logic_vector called data and control. These will be used for registers in the architecture. 3. (3 pts): Implement a function which takes an array of six elements of type seven_segment_config as an input and returns a std_logic_vector. The function concatenates all entries of each seven_segment_config record starting from g to a. The lowest seven bits of the resulting std_logic_vector should map to entry 0 of the array with the 7th bit and 1st bit being mapped to the g and a, respectively. 4. (3 pts): Implement a process which is triggered on changes to the clock signal. On a rising edge of the clock signal, the process shall check the state of the reset signal. If active, the data and control registers shall be set to 0. 5. (3 pts): Extend the process to include a check for the read input and write input. Utilize the following address map for address decoding: Description Data register. Contains the value to be shown in the seven segment display. Control register. Only bits that are not reserved may be written on every write transaction. Writes to reserved bits are to be ignored. Features register. To be generated using the core configura- tion parameters. Magic number. Must be 4144533516. Address Name Mode R/W R/W 00 01 10 11 data control features RO magic Writes to read-only registers must be ignored. The following bitfields are to be present in the features register. Reserved areas must read as zero. RO 1 vendor revision d vendor 24 revision 31:24 23:16 3:3 0:0 16 Implementer ID Core revision Lamp configuration Decimal support 3 0 1 d The following bitfields are to be present in the control register. Reserved areas must read as zero. Writes to reserved areas are to be ignored. If the core was built with decimal support disabled then writes to decimal bits are ignored. Reads from these bits yield zero. d TP 1 1:1 0:0 Output as decimal Turn on lamps 10 d 1 6. Extra Credit (1.5 pts): Add a new generic configuration parameter to the core of type boolean called signed_support. If set to true at synthesis time, bit 1:1 of the features register reads as 1 and writes to bit 3:3 of the control register are allowed. If the latter bit is set when the decimal bit in the control register is set, the number in data shall be treated as a signed negative number and displayed on the lamps as such. 7. Extra Credit (1.5 pts): Add a new generic configuration parameter to the core of type boolean called blank_zeros_support. If set to true at synthesis time, bit 2:2 of the features register reads as 1 and writes to bit 2:2 of the control register are allowed. If the latter bit is set when the decimal bit is set in the control register, the output on the lamps shall omit any leading zeros. Declare an entity called seven_segment_agent with the following generic configu- ration parameters: Parameter Туре lamp_mode decimal_support boolean implementer lamp_configuration revision natural natural Description Configuration of the lamps in the seven segment dis- plays. Defaults to default_lamp_config. Set to true to build decoder with support for showing decimal numbers. Defaults to true. A number between 1 and 255 which determines the implementer of the core. Each group will have a unique number. A number between 0 and 255 which indicates the revi- sion of the core. Must be set to 0. The following port interfaces must also be available. Parameter Type Direction Description Clock signal. Active low synchronous reset signal. Address bus. Must be 2 bit wide. Active high signal indicating a read transac- tion. clk reset_n address read readdata write writedata lamps std_logic in std_logic in std_logic_vector in std_logic in std_logic_vector std_logic out in std_logic_vector in std_logic_vector out Read data bus. Must be 32 bit wide. Active high signal indicating a write transac- tion. Write data bus. Must be 32 bit wide. Lamps output. Must be 42 bit wide. 2. (3 pts): Start the implementation of the architecture of the seven_segment_agent entity. Declare two 32 bit signals of type std_logic_vector called data and control. These will be used for registers in the architecture. 3. (3 pts): Implement a function which takes an array of six elements of type seven_segment_config as an input and returns a std_logic_vector. The function concatenates all entries of each seven_segment_config record starting from g to a. The lowest seven bits of the resulting std_logic_vector should map to entry 0 of the array with the 7th bit and 1st bit being mapped to the g and a, respectively. 4. (3 pts): Implement a process which is triggered on changes to the clock signal. On a rising edge of the clock signal, the process shall check the state of the reset signal. If active, the data and control registers shall be set to 0. 5. (3 pts): Extend the process to include a check for the read input and write input. Utilize the following address map for address decoding: Description Data register. Contains the value to be shown in the seven segment display. Control register. Only bits that are not reserved may be written on every write transaction. Writes to reserved bits are to be ignored. Features register. To be generated using the core configura- tion parameters. Magic number. Must be 4144533516. Address Name Mode R/W R/W 00 01 10 11 data control features RO magic Writes to read-only registers must be ignored. The following bitfields are to be present in the features register. Reserved areas must read as zero. RO 1 vendor revision d vendor 24 revision 31:24 23:16 3:3 0:0 16 Implementer ID Core revision Lamp configuration Decimal support 3 0 1 d The following bitfields are to be present in the control register. Reserved areas must read as zero. Writes to reserved areas are to be ignored. If the core was built with decimal support disabled then writes to decimal bits are ignored. Reads from these bits yield zero. d TP 1 1:1 0:0 Output as decimal Turn on lamps 10 d 1 6. Extra Credit (1.5 pts): Add a new generic configuration parameter to the core of type boolean called signed_support. If set to true at synthesis time, bit 1:1 of the features register reads as 1 and writes to bit 3:3 of the control register are allowed. If the latter bit is set when the decimal bit in the control register is set, the number in data shall be treated as a signed negative number and displayed on the lamps as such. 7. Extra Credit (1.5 pts): Add a new generic configuration parameter to the core of type boolean called blank_zeros_support. If set to true at synthesis time, bit 2:2 of the features register reads as 1 and writes to bit 2:2 of the control register are allowed. If the latter bit is set when the decimal bit is set in the control register, the output on the lamps shall omit any leading zeros.
Expert Answer:
Related Book For
A Concise Introduction to Logic
ISBN: 978-1305958098
13th edition
Authors: Patrick J. Hurley, Lori Watson
Posted Date:
Students also viewed these finance questions
-
CAPM is the most logical and intuitively appealing method to measure risk and relate it to required returns. Are there any reasons to question the validity of the CAPM? Explain your answer 30 marks...
-
123 Compare the purely graphical properties of these two notations, and the ways in which the graphical properties of each display correspond to the information structure being defined. Describe...
-
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...
-
In the figure below, a square of edge lengths is formed by four spheres of masses, m, M, m3, and m4. What is the x component and the y component of the net gravitational force from them on a central...
-
How is price fixing treated under antitrust policy? Give two examples of legal actions against price fixing.
-
Design Arts Associates is an interior decorating firm in Berlin. The following costs were incurred in the firms contract to redecorate the mayors offices. Direct material used...
-
Explain the importance of a written contract.
-
Performance Plastics Company (PPC) has been operating for three years. The beginning account balances are: During the year, the company had the following summarized activities: a. Purchased equipment...
-
Harris Fabrics computes its plantwide predetermined overhead rate annually on the basis of direct labor - hours. At the beginning of the year, it estimated that 2 5 , 0 0 0 direct labor - hours would...
-
Income distribution effects of trade refer to: Choose One -the fact that some factors gain more than other with trade. -the fact that some factors gain and others lose with trade. -the fact that some...
-
4.4.4. The shareholders of Zedzee Pty Ltd are Sufyaan (10 shares), Shahedah (10 shares), Hilton (10 shares) and Sue (10 shares). The directors are Sufyaan and Shahedah. Upon registration, Zedzee...
-
The scope of a project is expanded through the formal change control process, causing the schedule to be extended beyond the original due date. This is an example of which type of influence?
-
It is March, and the annual NCAA Basketball Tournament is down to the final 4 teams. Randy Kitchell is a t-shirt vendor who plans to order t-shirts with the names of the final 4 teams from a...
-
I hired a carpenter and an apprentice to do some work at my business. They worked two days. On the first day I was billed $210 for 11 hours of work by the main carpenter and for 7 hours of work by...
-
-> Let G and H be groups. A function : G H is called a (group) homomorphism if it satisfies (9192) = (91) * (92) for all 91, 92 G. (Note that the product 91*92 uses the group law in the group G,...
-
You decide to drive from San Francisco to Los Angeles for the weekend, which is a distance of roughly 400 miles. What should your average speed be in order to make the trip in 5.5 hours? (Hint: watch...
-
Refer to the data in QS 10-1. Based on financial considerations alone, should Helix accept this order at the special price? Explain.
-
Answer "true" or "false" to the following statements: 1. Any passage that contains an argument must contain a claim that something is supported by evidence or reasons. 2. In an argument, the claim...
-
When will these upper-crust intellectuals realize that the masses of working people are not in cozy, cushy, interesting, challenging, well-paying jobs, professions and businesses? My husband is now...
-
Giving ridiculous reasons, the editors of the Daily Register have accused our company of being one of the citys worst water polluters. But the Daily Register is responsible for much more pollution...
-
Suppose a bond is taxable for both federal and state purposes. Let Rb = the BTROR on the bond, tfed = the federal tax rate, and tst = the state tax rate. Determine the ATROR (i.e., after federal and...
-
Under what conditions are the Exempt Model and Pension Model equivalent? Under what conditions would one model perform better than the other? How does the \($6,500\) limitation on deductible and Roth...
-
Harry wants to contribute either \($6,500\) (BT\($)\) to a traditional deductible IRA or \($6,500\) (AT\($)\) to a Roth IRA. His current tax rate is 30% for ordinary income and 15% for capital gains....
Study smarter with the SolutionInn App