Digital Tube Hardware Development new schematic diagram
- 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 Lab6_seg .
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
- Start the Qsys tool and make an IP module call. Click? Tools--Qsys, go to the Qsys Setup screen. The system has already added the clock module by default, the name is Clk_0?, here, select Clk_0, right-click, select Rename, change its name to CLK. The following add any module, make a similar name change, change the name of the method is similar, do not repeat the narrative.
- Add parts of the soft core processor module. Total need to add
Nios II Processor,
JTAG UART,
System ID Peripheral
EPCS Serial Flash Controller
Sdram Controller
Pio
Timer
These 7 modules. First familiar? Qsys's interface. To the left component library, is a system-provided component libraries, there are some common modules that make up the processor. The right side is the module that has been added to the system, that is, the Nios II soft core processor can be customized according to the specific needs. In the component library search Nios II Processor, double click to configure. The first thing to choose is the type of Nios II core. The core of Nios II Soft core is divided into three types, E-type, S-type and F-type. The e-core occupies the least amount of resources and functions the simplest and slowest. S-type core occupancy resources Secondly, the function and speed are higher than the former, the F-core has the most functions, the fastest, the corresponding occupation of the most resources, select the time according to demand and chip resources to decide, here Select S core. And then click? Finish to end the current configuration.
?
?
- Add SDRAM controller, the SDRAM chip used here, the size of 64M?????? B = 1M x 16Bit x 4Banks, specific other content you can view its datesheet.
renamed to SDRAM;
- Add epcs/epcqx1 Serial Flash Controller, where no setup is required, click Finish to finish.
- Add the JTAG download Debug interface. Search for the JTAG UART in the component library. Double-click to set. Because the system has no special requirements, the default configuration is selected here. Click? Finish? End the current configuration.
- Add the System ID module. The system ID is the unique identifier of the system that distinguishes it from other systems. Search in the component library? System ID peripheral, double-click to set. This is done casually, as set to 123. Click? Finish to end the current configuration.
- Add Pio as the De Shun signal for the digital tube. When you double-click Open, select the bit width (width) and direction (Direction) as needed, so width is set to 8,direction set to output. Click Finish to complete the setup.
Rename as follows:
- Add Pio as a bit-selectable signal for the digital tube. When you double-click Open, select the bit width (width) and direction (Direction) as needed, so width is set to 4,direction set to output. Click Finish to complete the setup.
- Adding timer module Timers
- Wired, coming right? The related lines in the Connections column are connected by setting up a node. First, the CLK of all modules is connected together.
The S1 of the on-chip memory SDRAM is then connected to the Data_master and Instruction_master of the processor Nios2.
The Jtag Debug Module Jtag_uart avalon_jtag_slave is connected to the data_master of the processor Nios2.
The System ID module Sysid_qsys Control_slave is connected to the data_master of the processor Nios2.
?
- The S1 of the Seg_duan module connects the data_master of the processor nios2;
Set the output port of the Seg_duan and rename the port name;
- The S1 of the Seg_wei module connects the data_master of the processor nios2;
Set the output port of the Seg_wei and rename the port name;
- The S1 of the timer module is connected to the data_master of the processor nios2;
- Set the reset signal.
- The processor Nios2 interrupts and Jtag_uart interrupts, Epcs_flash interrupts, and timer interrupts are connected.
- Click the small lock behind the Epcs_flash to lock it.
- Make the relevant settings for the soft core. First double-click Nios2 to enter the processor Setup module. Under the Core Nios II tab, reset vector memory is set to Epcs_flash.epcs_control_port,exception vector Memory is set to SDRAM.S1, then click Finish to complete the setup.
- Click? System-Assign Base Addresses, this time will find the lower messages window of the original error all gone, changed to 0 errors,0 Warnings. If this is not the result, go back and follow the steps to check.
- Click? Save the file, save it here with the name lab6_seg.
- Finally, select the Generation tab, set the Create simulation model to none, and then click Generate below to build. The time is long, everybody waits patiently.
- When you are finished, click Close, and then close Qsys back to the Quartus II interface.
Schematic Add IP module
Refer to experiment two (LED), re-invoke script to configure pin
Nios ii--Experiment 7--Digital tube IP hardware part