Nios ii--Experiment 4--key Interrupt Hardware section

Source: Internet
Author: User

Key interrupt Hardware Development new schematic diagram

1. Open Quartus II 11.0, create a new project, File--New project Wizard ..., ignore introduction, click between? Next> go to the next step. Set up engineering working directory, project name respectively. It is important to note that in the engineering work directory, please use English, do not include spaces, etc., or you may have problems when using the Nios II IDE later. Set as shown in 1. Then proceed to the next step. This project is named Lab3_bnt .

2, add the existing files, there is no need to add files, directly click? Next> go to the next step. For device setup. It's Cyclone IV family? EP4CE6E22C8 chip, select OK and go to the next step directly. EDA tool Setup, because the project does not carry out simulation, and so on, so do not set up, if you need to Modelsim simulation, in the simulation line, select tool Name? For Modelsim-altera (this is selected based on the version of Modelsim installed), Format (s) is selected as Verilog HDL (this is also selected based on the hardware description language mastered). Click? Next>?, go to the Summary (summary) page, and then click? Finish.

3, New? Block Diagram/schematic File? (Block diagram/schematic). Click? FILE-New: Select the Block diagram/schematic File in design files and click OK.

?

Qsys Calling Module

Referring to experiment two (LED), a PIO is added on the basis of the experiment to connect the external keys. Set as input, edge interrupt, rising edge trigger.

Set the port, rename the port name, and set the interrupt number.

After the add is complete, build.

Schematic Add IP module
  1. Adding niosii Cores

    Double-click the empty space in BLOCK1.BDF to open the Symbol dialog box. Select Project

  2. Add PLL

    Click Megawizard Plug-in Manager ... in the lower right corner to enter the macro module call interface.

    Select Creat a new custom megafunction variation, click? Next> go to the next step and add the name of the output file to the PLL after the "What name does want for the". Then search for ALTPLL in the search box on the right, select it, this step mainly for the system Add clock module, and then click? Next> into the next step.

    Popup altpll Settings dialog box, where? Where is the frequency of the inclk0 input? In the General section, change the clock to 50MHz.

    Then follow these procedures to set up:

    Then always set the default, always next to the window, click Finish.

    A quartus II IP Files dialog box pops up, click Yes to complete and no action is required. Then click OK in the Symbol dialog box and place the module in BLOCK1.BDF.

  3. connecting, adding pins

    Double-click the Open Symbol dialog box, and2 in Name, and add the door.

    Click Select Module to add Pin, right click, select Generate pins for symbol ports.

    ?

    Rename the pin as follows:

  4. Click? Project-add/remove files in Project ..., click the Browse button after the file name, select the. qsys file, click Add, and then click OK.
  5. Configuration Pins

    First, compile, and then use the script file to configure, toolsàtcl scripts;

  6. ?
  7. ?
  8. ?
  9. ?
  10. ?
  11. Set up engineering parameters

    Set as configuration device EPCS4

    Set dual-use pins;

  12. In general, please be patient for a long time.

Nios ii--Experiment 4--key Interrupt Hardware section

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.