Write a behavioral Verilog code

Assignment Help Marketing Management
Reference no: EM132916115

In this lab, the students will obtain experience with sequential logic design, and study digital design using the Xilinx design package for FPGAs. It is assumed that students are familiar with the operation of the Xilinx design package for Field Programmable Gate Arrays (FPGAs) through the Xilinix tutorial available in the class website.

1. This lab introduces unsigned binary division algorithms, including the restoring algorithm.

2. Given a dividend ‘a' and a divisor ‘b', the restoring division algorithm calculates the quotient ‘q' and the remainder ‘r' such that a = b x q + r and r < b, by subtracting b from the partial remainder (initially the MSB of a). If the result of the subtraction is not negative, we set the quotient bit to 1. Otherwise, b is added back to the result to restore the partial remainder. Then we shift the partial remainder with the remaining bits of ‘a' to the left by one bit for the calculation of the next quotient bit. This procedure is repeated until all the bits of ‘a' are shifted out.

3. Figure 1 shows the schematic diagram of a restoring divider. There are three registers: reg_b, reg_r, and reg_q, for storing the divisor b, a remainder r, and quotient q respectively. Initially, reg_q stores the dividend a. A subtracter is used to subtract b from the partial remainder. The MSB of the output of the subtracter is used to determine whether the result of the subtraction is negative or not. The multiplexer over reg_q is used to load a initially and to shift the content of reg_q (a and q) to the left later. The multiplexer over reg_r implements the restoring. If the result of the subtraction is negative, the multiplexer selects the original partial remainder. Otherwise, it selects the result of the subtraction. At each iteration, one bit of q is obtained from the sign bit of the subtracter result and written to the LSB of the reg_q.

4. In Figure 2, start signal means the start of the division; busy indicates that the divider is busy (can't start a new division); ready indicates that the quotient and remainder are available; and count is the output of a counter that is used to control the iterations of the division.

5. Figure 2 shows part of the expected output of the simulation of 0x4c7f228a / 0x6a0e, q = 0xb8a6 and r = 0x4d76 are available when ready is 1 at 330 ns and then 0xffff00/4, q is 0x3fffc0, and r is 0

554_figure.jpg

Figure 1 Schematic diagram of a restoring divider

309_figure1.jpg

Figure 2 Part of the expected output.

6. Write a behavioral Verilog code describing Figure 1. Compile and simulate your code to correctly do the division.

7. Write a report that contains the following:
a. Your Verilog design code. Use:
i. Device: XC7Z010- -1CLG400C or choose any other FPGA type. You can use Arria V if you are using Quartus II software.
b. Your Verilog Test Bench design code to do the following division shown in item 5 (0x4c7f228a / 0x6a0e). Add "`timescale 1ns/1ps" as the first line of your test bench file.
c. The waveforms resulting from the verification of your design with the simulation software, showing all the signals as shown in Figure 2. Show the signals till 680 ns.
d. The design schematics from the synthesis of your design. Do not use any area constraints.
e. Snapshot of the I/O Planning and
f. Snapshot of the floor planning

Reference no: EM132916115

Questions Cloud

Calculate the manufacturing cost of a surfboard : Calculate the manufacturing cost of a surfboard that takes SAR 150 of direct materials and 36 hours of direct labor. How much overhead had been allocated?
Determine total over or under applied overhead at the end : Determine total over or under applied overhead at the end of the year. The AMS Manufacturing Company uses a job costing system with machine hours
What do understand by utilization rate : What is the difference between the product cost and period cost? What do you understand by utilization rate? Give an example.
Economic costs of drug use : Read the information located on the image titled Economic Costs of Drug Use. the most recent data that the Office of National Drug Control Policy has published.
Write a behavioral Verilog code : Write a behavioral Verilog code describing and The waveforms resulting from the verification of your design with the simulation software, showing all the signal
Eight domestic and international terrorist events : Create a detailed diagram and timeline of eight domestic and international terrorist events that have occurred.
How do think two concepts will help in current job : How do you think these two concepts will help you in your current job or future career or endeavors? Identify at least two concepts that were reviewed
Effective methods of enhancing your presentation skills : Reflection and utilizing feedback are effective methods of enhancing your presentation skills. Did you learn everything you wanted to learn in the program?
What is the required sales in dollars for the company : Viejol Corporation has collected, The company has a target net income of $216,000. What is the required sales in dollars for the company to meet its target?

Reviews

Write a Review

Marketing Management Questions & Answers

  Integrated marketing communication

Developing an IMC plan of Amazon that aims to create awareness and knowledge amongst Singaporean  consumers of the ethics involved in buying clothing made from Bangladeshi factories  .

  Multiple choice questions on e-commerce

The assignment in Computer Science or Information Technology is about multiple choice questions, particularly in e-commerce. Questions such as types of e-commerce websites, commercial websites, disintermediation, Platform for Piracy, the data that ca..

  Balanced scorecard for red lobster

The assignment in marketing is about Red Lobster, which is one US and Canada's most loved seafood restaurant. It has hundreds of outlets in US and Canada and it now wants to expand further. The approach adopted by Red Lobster has been discussed in fu..

  Marketing plan - marketing audit, swot and smart report

The assignment in marketing is about preparing a marketing plan. As part of marketing plan, the SWOT analysis, assessing the competitive position, identifying critical competitive issues, marketing objectives, strategy and actions have been suggested..

  Marketing plan

Marketing deals with preparing a marketing plan for either an existing product or a new product. Various aspects about launching a new product into the market are discussed ranging from the industry the product belongs to, goals and vision of the com..

  Yamato corporation analysis - harvard case study

Please refer to the PDF for the Case Study and questions.The case study from Harvard Business School is about Yamato Corporation, a parcel delivery company which provides door to door delivery in Japan.

  Marketing plan - create a new product

The assignment in marketing is about competitive analysis for a new product namely "heated insoles". These heated insoles can be put in shoes and they can protect the wearer's feet by keeping them warm during cold winters.

  Report on digital marketing strategy for a website

Promotion strategies of  the one's own developed website

  Integrated marketing campaign of mccafe

Integrated marketing campaign for McDonald's McCafe. McCafe has been launched in Canada. This is a case study which involves the use of digital marketing and social media marketing apart from regular marketing such as TV and radio. All these more are..

  New product development at adidas

In this paper, the researcher also determines the different kind of practices used by Adidas to manufacture shoes for its customers.

  Managing services in competitive environment

Services can be defined as separately identifiable, intangible activities which provide want-satisfaction when marketed to household consumers and/or industrial users.

  Prepare a marketing plan

A marketing plan is an essential tool for any marketer, providing direction for a brand, product or organization. A marketing plan describes the marketing environment, marketing objectives and marketing strategies.

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