• 大小: 972KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-13
  • 语言: 其他
  • 标签: Verilog  电梯  代码  FPGA  

资源简介

该代码为编者改进的一个四层楼电梯使用的代码,包含上楼下楼以及电梯门的开关情况。注释详细。适合Verilog初学者阅读。警告:可参考,勿剽窃!

资源截图

代码片段和文件信息

/**********************************************************************/
/*   ____  ____                                                       */
/*  /   /\/   /                                                       */
/* /___/  \  /                                                        */
/* \   \   \/                                                         */
/*  \   \        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_5(char* char *);
extern void execute_6(char* char *);
extern void execute_7(char* char *);
extern void execute_12(char* char *);
extern void execute_13(char* char *);
extern void execute_14(char* char *);
extern void execute_15(char* char *);
extern void execute_16(char* char *);
extern void execute_17(char* char *);
extern void execute_18(char* char *);
extern void execute_19(char* char *);
extern void execute_20(char* char *);
extern void execute_3(char* char *);
extern void execute_9(char* char *);
extern void execute_10(char* char *);
extern void execute_11(char* char *);
extern void execute_21(char* char *);
extern void execute_22(char* char *);
extern void execute_23(char* char *);
extern void execute_24(char* char *);
extern void execute_25(char* char *);
extern void vlog_transfunc_eventcallback(char* char* unsigned unsigned unsigned char *);
funcp funcTab[22] = {(funcp)execute_5 (funcp)execu

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-02-27 15:57  dianti\
     目录           0  2019-02-27 15:57  dianti\.Xil\
     目录           0  2019-02-27 15:56  dianti\dianti.cache\
     目录           0  2018-12-25 22:52  dianti\dianti.cache\compile_simlib\
     目录           0  2019-02-27 15:57  dianti\dianti.cache\compile_simlib\activehdl\
     目录           0  2019-02-27 15:57  dianti\dianti.cache\compile_simlib\ies\
     目录           0  2019-02-27 15:57  dianti\dianti.cache\compile_simlib\modelsim\
     目录           0  2019-02-27 15:57  dianti\dianti.cache\compile_simlib\questa\
     目录           0  2019-02-27 15:57  dianti\dianti.cache\compile_simlib\riviera\
     目录           0  2019-02-27 15:57  dianti\dianti.cache\compile_simlib\vcs\
     目录           0  2019-02-27 15:57  dianti\dianti.cache\compile_simlib\xcelium\
     目录           0  2018-12-25 00:27  dianti\dianti.cache\ip\
     目录           0  2019-02-27 15:57  dianti\dianti.cache\ip\2017.4\
     目录           0  2018-12-26 16:59  dianti\dianti.cache\wt\
     文件        5964  2019-02-27 15:57  dianti\dianti.cache\wt\gui_handlers.wdf
     文件        1879  2019-02-27 15:57  dianti\dianti.cache\wt\java_command_handlers.wdf
     文件         123  2019-02-27 15:57  dianti\dianti.cache\wt\project.wpc
     文件        5087  2018-12-27 16:02  dianti\dianti.cache\wt\synthesis.wdf
     文件         100  2018-12-27 15:59  dianti\dianti.cache\wt\synthesis_details.wdf
     文件        5978  2019-02-27 15:57  dianti\dianti.cache\wt\webtalk_pa.xml
     文件         256  2018-12-25 23:57  dianti\dianti.cache\wt\xsim.wdf
     目录           0  2019-02-27 15:56  dianti\dianti.hw\
     文件         343  2018-12-26 17:11  dianti\dianti.hw\dianti.lpr
     目录           0  2018-12-26 17:11  dianti\dianti.hw\hw_1\
     文件         789  2019-01-18 12:39  dianti\dianti.hw\hw_1\hw.xml
     目录           0  2019-02-27 15:57  dianti\dianti.hw\hw_1\wave\
     目录           0  2019-02-27 15:56  dianti\dianti.ip_user_files\
     文件         130  2018-12-25 23:48  dianti\dianti.ip_user_files\README.txt
     目录           0  2019-02-27 15:56  dianti\dianti.runs\
     目录           0  2018-12-27 15:58  dianti\dianti.runs\.jobs\
     文件         393  2018-12-26 16:58  dianti\dianti.runs\.jobs\vrs_config_1.xml
............此处省略193个文件信息

评论

共有 条评论