Note: The project required for this blog download link: http://download.csdn.net/detail/lzy272942518/8850539
First, the purpose
The composition of Microblaze minimum system in learning diagram
Learn to export, build, and run SDK-based projects
Second, Introduction
Experimental Purpose:
1. New project through TCL script
2. Learn Microblaze basic structure by block Diagram block diagram
3. Implement Microblaze call UART module, complete the serial printing function.
Experimental principle: In this system, BASYS3 's Microblaze module calls the UART IP core based on Axi protocol, realizes the communication between Microblaze-uart through Axi bus, and completes the serial printing function.
Third, step:
1. Running TCL to create a new project
1) Open Vivado2014.4 design and development software
2) in the TCL console column, use the CD command to enter the path of the Mb_uart.tcl file. For example, the path is d:/xilinx_proj_mar/b3_lab/lab5/mb_uart/src/tcl/,
Then enter: CD d:/xilinx_proj_mar/b3_lab/lab5/mb_uart/src/tcl/, such as:
3) in the TCL console column, enter the following command: source./mb_uart.tcl. Enter finish press ENTER to run TCL. Such as:
4) wait for Tcl to synthesize, realize, generate bitstream;
2. Set up SDK application engineering
1) After Tcl Run is finished, click Openblock Design on the left side of the engineering interface to see the system hardware block diagram:
2) Click on the project taskbar File->export->export hardware to export the hardware engineering to the SDK.
Notice that in the new pop-up window, tick "Includebitstream". As follows:
3) Click the project taskbar File->launch SDK to launch the SDK.
4) Wait, and then the SDK starts, as shown in the following interface:
5) Create a new SDK application project from the SDK taskbar New->applicationproject:
6) The project name is HelloWorld, directly click Finish to complete the establishment:
7) You can see the following on the left side of the SDK interface, with new additions of HelloWorld and helloworld_bsp two. Where HELLOWORLD_BSP is a board-level support package for HelloWorld application engineering:
8) Double-click the helloworld.c under HelloWorld under SRC. This file is a C file that contains the main function. The build of the project can then be completed by Ctrl+b:
9) Connect the BASYS3 board, Power on, click on the SDK taskbar Xilinx tools->program FPGA, in the new window directly click Program to complete the bit download:
10) The next step is to open the BASYS3 serial port. Click the Connect button on the terminal window below the SDK interface:
In the new pop-up window, change the connection type to serial:
Select the correct serial number in port and click OK to open the serial port:
11) Right-click on the HelloWorld of Project Explorer on the left side of the interface, select Run As->launch on hardware (GDB) and run SDK Software engineering:
Wait a few seconds and you can see the printed Hello World on the terminal interface:
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Tutorial--BASYS3 Development Board Microblaze serial Experiment