• 大小: 528KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-16
  • 语言: 其他
  • 标签: FPGA  

资源简介

FPGA入门代码:实现两个 8位二进制相加,其结果的范围应该在00000000到111111110之间,八位二进制数换算成三位十进制数最大为255,也就是说要输入两个000到255之间的数。

资源截图

代码片段和文件信息

/**********************************************************************/
/*   ____  ____                                                       */
/*  /   /\/   /                                                       */
/* /___/  \  /                                                        */
/* \   \   \/                                                         */
/*  \   \        Copyright (c) 2003-2013 Xilinx Inc.                 */
/*  /   /        All Right Reserved.                                  */
/* /---/   /\                                                         */
/* \   \  /  \                                                        */
/*  \___\/\___\                                                       */
/**********************************************************************/


#include “iki.h“
#include 
#include 
#ifdef __GNUC__
#include 
#else
#include 
#define alloca _alloca
#endif
/**********************************************************************/
/*   ____  ____                                                       */
/*  /   /\/   /                                                       */
/* /___/  \  /                                                        */
/* \   \   \/                                                         */
/*  \   \        Copyright (c) 2003-2013 Xilinx Inc.                 */
/*  /   /        All Right Reserved.                                  */
/* /---/   /\                                                         */
/* \   \  /  \                                                        */
/*  \___\/\___\                                                       */
/**********************************************************************/


#include “iki.h“
#include 
#include 
#ifdef __GNUC__
#include 
#else
#include 
#define alloca _alloca
#endif
typedef void (*funcp)(char * char *);
extern int main(int char**);
extern void execute_29(char* char *);
extern void execute_74(char* char *);
extern void execute_75(char* char *);
extern void execute_76(char* char *);
extern void execute_38(char* char *);
extern void execute_34(char* char *);
extern void execute_35(char* char *);
extern void execute_31(char* char *);
extern void execute_32(char* char *);
extern void execute_33(char* char *);
extern void execute_77(char* char *);
extern void execute_78(char* char *);
extern void execute_79(char* char *);
extern void execute_80(char* char *);
extern void execute_81(char* char *);
extern void vlog_transfunc_eventcallback(char* char* unsigned unsigned unsigned char *);
funcp funcTab[16] = {(funcp)execute_29 (funcp)execute_74 (funcp)execute_75 (funcp)execute_76 (funcp)execute_38 (funcp)execute_34 (funcp)execute_35 (funcp)execute_31 (funcp)execute_32 (funcp)execute_33 (funcp)execute_77 (funcp)execute_78 (funcp)execute_79 (funcp)execute_80

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

     文件       7729  2018-04-13 22:16  8bit_adder\8bit_adder.cache\wt\gui_handlers.wdf

     文件       2233  2018-04-13 22:16  8bit_adder\8bit_adder.cache\wt\java_command_handlers.wdf

     文件        121  2018-04-13 22:16  8bit_adder\8bit_adder.cache\wt\project.wpc

     文件       5406  2018-04-07 16:31  8bit_adder\8bit_adder.cache\wt\synthesis.wdf

     文件        100  2018-04-07 16:31  8bit_adder\8bit_adder.cache\wt\synthesis_details.wdf

     文件       7218  2018-04-13 22:16  8bit_adder\8bit_adder.cache\wt\webtalk_pa.xml

     文件        256  2018-04-08 09:08  8bit_adder\8bit_adder.cache\wt\xsim.wdf

     文件        343  2018-04-07 15:31  8bit_adder\8bit_adder.hw\8bit_adder.lpr

     文件        835  2018-04-08 09:10  8bit_adder\8bit_adder.hw\hw_1\hw.xml

     文件         59  2018-04-07 15:40  8bit_adder\8bit_adder.hw\webtalk\.xsim_webtallk.info

     文件        660  2018-04-07 15:40  8bit_adder\8bit_adder.hw\webtalk\labtool_webtalk.log

     文件       2971  2018-04-07 15:40  8bit_adder\8bit_adder.hw\webtalk\usage_statistics_ext_labtool.html

     文件       2573  2018-04-07 15:40  8bit_adder\8bit_adder.hw\webtalk\usage_statistics_ext_labtool.xml

     文件        130  2018-04-07 15:17  8bit_adder\8bit_adder.ip_user_files\README.txt

     文件        204  2018-04-07 15:21  8bit_adder\8bit_adder.runs\.jobs\vrs_config_1.xml

     文件        225  2018-04-07 16:33  8bit_adder\8bit_adder.runs\.jobs\vrs_config_10.xml

     文件        218  2018-04-07 15:28  8bit_adder\8bit_adder.runs\.jobs\vrs_config_2.xml

     文件        225  2018-04-07 15:30  8bit_adder\8bit_adder.runs\.jobs\vrs_config_3.xml

     文件        221  2018-04-07 16:14  8bit_adder\8bit_adder.runs\.jobs\vrs_config_4.xml

     文件        392  2018-04-07 16:19  8bit_adder\8bit_adder.runs\.jobs\vrs_config_5.xml

     文件        218  2018-04-07 16:22  8bit_adder\8bit_adder.runs\.jobs\vrs_config_6.xml

     文件        225  2018-04-07 16:25  8bit_adder\8bit_adder.runs\.jobs\vrs_config_7.xml

     文件        204  2018-04-07 16:30  8bit_adder\8bit_adder.runs\.jobs\vrs_config_8.xml

     文件        218  2018-04-07 16:32  8bit_adder\8bit_adder.runs\.jobs\vrs_config_9.xml

     文件        168  2018-04-07 16:32  8bit_adder\8bit_adder.runs\impl_1\.init_design.begin.rst

     文件          0  2018-04-07 16:32  8bit_adder\8bit_adder.runs\impl_1\.init_design.end.rst

     文件        168  2018-04-07 16:32  8bit_adder\8bit_adder.runs\impl_1\.opt_design.begin.rst

     文件          0  2018-04-07 16:32  8bit_adder\8bit_adder.runs\impl_1\.opt_design.end.rst

     文件        168  2018-04-07 16:32  8bit_adder\8bit_adder.runs\impl_1\.place_design.begin.rst

     文件          0  2018-04-07 16:32  8bit_adder\8bit_adder.runs\impl_1\.place_design.end.rst

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

评论

共有 条评论