• 大小: 20.48MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-06
  • 语言: C/C++
  • 标签: FPGA nios  LCD12864  UART  

资源简介

里面采用了菜单结构(这里编程需要一定得c语言编程技巧与数据结构知识),使得更加友好,功能层次也更明显,便于操作。 其中还包括了LCD12864液晶的字符输入,光标闪烁,删除字符等功能 这里我上传了整个工程源码(因为里面包括很多源码文件,我没法一一在这里贴出来), 包括Quartus的verilog源码和c语言源码, 你可能不能直接运行,需要修改一些配置路径,自己百度看看如何修改吧,有什么疑问也可以联系我 但是里面的源码的思路特别是c语言部分完全可以借鉴的 --------------------- 作者:biao2488890051 来源:CSDN 原文:https://blog.csdn.net/kangkanglhb88008/article/details/84073780 版权声明:本文为博主原创文章,转载请附上博文链接!

资源截图

代码片段和文件信息

/*
 * alt_sys_init.c - HAL initialization source
 *
 * Machine generated for CPU ‘nios2_qsys‘ in SOPC Builder design ‘led‘
 * SOPC Builder design path: D:/project/2_qsys_pio/qsys/hardware/led.sopcinfo
 *
 * Generated: Mon Nov 12 15:28:59 CST 2018
 */

/*
 * DO NOT MODIFY THIS FILE
 *
 * Changing this file will have subtle consequences
 * which will almost certainly lead to a nonfunctioning
 * system. If you do modify this file be aware that your
 * changes will be overwritten and lost when this file
 * is generated again.
 *
 * DO NOT MODIFY THIS FILE
 */

/*
 * License Agreement
 *
 * Copyright (c) 2008
 * Altera Corporation San Jose California USA.
 * All rights reserved.
 *
 * Permission is hereby granted free of charge to any person obtaining a
 * copy of this software and associated documentation files (the “Software“)
 * to deal in the Software without restriction including without limitation
 * the rights to use copy modify merge publish distribute sublicense
 * and/or sell copies of the Software and to permit persons to whom the
 * Software is furnished to do so subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
 * IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
 * LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING
 * FROM OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 *
 * This agreement shall be governed in all respects by the laws of the State
 * of California and by the laws of the United States of America.
 */

#include “system.h“
#include “sys/alt_irq.h“
#include “sys/alt_sys_init.h“

#include 

/*
 * Device headers
 */

#include “altera_nios2_qsys_irq.h“
#include “altera_avalon_epcs_flash_controller.h“
#include “altera_avalon_jtag_uart.h“
#include “altera_avalon_sysid_qsys.h“

/*
 * Allocate the device storage
 */

ALTERA_NIOS2_QSYS_IRQ_INSTANCE ( NIOS2_QSYS nios2_qsys);
ALTERA_AVALON_EPCS_FLASH_CONTROLLER_INSTANCE ( EPCS_FLASH epcs_flash);
ALTERA_AVALON_JTAG_UART_INSTANCE ( JTAG_UART jtag_uart);
ALTERA_AVALON_SYSID_QSYS_INSTANCE ( SYSID_QSYS sysid_qsys);

/*
 * Initialize the interrupt controller devices
 * and then enable interrupts in the CPU.
 * Called before alt_sys_init().
 * The “base“ parameter is ignored and only
 * present for backwards-compatibility.
 */

void alt_irq_init ( const void* base )
{
    ALTERA_NIOS2_QSYS_IRQ_INIT ( NIOS2_QSYS nios2_qsys);
    alt_irq_cpu_enable_interrupts();
}

/*
 * Initialize the non-interrupt controller devices.
 * Called after alt_irq_init().
 */

void alt_sys_init( void )
{
    ALTERA_AVALON_EPCS_FLASH_CONTROLLER_IN

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         66  2018-07-18 11:14  2_qsys_pio\par\.qsys_edit\filters.xml

     文件      70037  2018-11-14 16:11  2_qsys_pio\par\.qsys_edit\layout.xml

     文件        496  2018-11-14 16:11  2_qsys_pio\par\.qsys_edit\preferences.xml

     文件       1272  2018-11-13 18:50  2_qsys_pio\par\db\.cmp.kpt

     文件       1576  2018-07-18 17:09  2_qsys_pio\par\db\add_sub_qvi.tdf

     文件      17658  2018-07-18 17:09  2_qsys_pio\par\db\altera_mult_add_q1u2.v

     文件      17658  2018-07-18 17:09  2_qsys_pio\par\db\altera_mult_add_s1u2.v

     文件      30486  2018-07-18 17:09  2_qsys_pio\par\db\altsyncram_04c1.tdf

     文件     140454  2018-07-18 17:09  2_qsys_pio\par\db\altsyncram_16c3.tdf

     文件      37803  2018-07-18 17:09  2_qsys_pio\par\db\altsyncram_cjd1.tdf

     文件      12536  2018-07-18 17:09  2_qsys_pio\par\db\altsyncram_deg1.tdf

     文件     221677  2018-11-12 16:55  2_qsys_pio\par\db\altsyncram_e6c3.tdf

     文件      37276  2018-07-18 17:09  2_qsys_pio\par\db\altsyncram_hag1.tdf

     文件       6413  2018-07-18 17:09  2_qsys_pio\par\db\altsyncram_hsg1.tdf

     文件      37276  2018-07-18 17:09  2_qsys_pio\par\db\altsyncram_iag1.tdf

     文件      37471  2018-07-18 17:09  2_qsys_pio\par\db\altsyncram_kpc1.tdf

     文件      24306  2018-07-18 17:09  2_qsys_pio\par\db\altsyncram_nh41.tdf

     文件      17784  2018-07-18 17:09  2_qsys_pio\par\db\altsyncram_o8h1.tdf

     文件      30486  2018-11-12 16:55  2_qsys_pio\par\db\altsyncram_q4c1.tdf

     文件      12737  2018-07-18 17:09  2_qsys_pio\par\db\altsyncram_r1m1.tdf

     文件      34542  2018-07-18 17:09  2_qsys_pio\par\db\altsyncram_r3d1.tdf

     文件      31114  2018-07-18 17:09  2_qsys_pio\par\db\altsyncram_rk81.tdf

     文件       3365  2018-07-18 17:09  2_qsys_pio\par\db\a_dpfifo_q131.tdf

     文件       3938  2018-07-18 17:09  2_qsys_pio\par\db\a_fefifo_7cf.tdf

     文件       3373  2018-07-18 17:09  2_qsys_pio\par\db\cntr_1ob.tdf

     文件       3351  2018-07-18 17:09  2_qsys_pio\par\db\cntr_do7.tdf

     文件       3299  2018-07-18 17:09  2_qsys_pio\par\db\decode_osa.tdf

     文件       3299  2018-11-12 16:55  2_qsys_pio\par\db\decode_rsa.tdf

     文件       2426  2018-07-18 17:09  2_qsys_pio\par\db\dpram_nl21.tdf

     文件     302060  2018-11-13 18:50  2_qsys_pio\par\db\logic_util_heursitic.dat

............此处省略1796个文件信息

评论

共有 条评论