• 大小: 10.75MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-11
  • 语言: 其他
  • 标签: verilog  vavido  MIPS32  

资源简介

基于vivado软件,使用verilog语言,较好地实现MIPS32的20条指令。包含测试代码和CPU实现代码。
实现的具体功能如下:
1.设计的CPU能够执行20条整数指令,每条指令的编码长度均为32位;
2.指令类型有:计算类型、访问存储器类型、条件转移类型和无条件转移类型等;
3.实现CPU的封装处理。
具体设计思路参见:https://blog.csdn.net/qq_45288566/article/details/103656372

资源截图

代码片段和文件信息

/**********************************************************************/
/*   ____  ____                                                       */
/*  /   /\/   /                                                       */
/* /___/  \  /                                                        */
/* \   \   \/                                                         */
/*  \   \        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_2(char* char *);
extern void execute_3(char* char *);
extern void vlog_simple_process_execute_0_fast_no_reg_no_agg(char* char* char*);
extern void execute_22031(char* char *);
extern void execute_22032(char* char *);
extern void execute_22033(char* char *);
extern void execute_22034(char* char *);
extern void execute_22035(char* char *);
extern void execute_22036(char* char *);
extern void execute_22037(char* char *);
extern void execute_22038(char* char *);
extern void execute_22039(char* char *);
extern void execute_22040(char* char *);
extern void execute_22041(char* char *);
extern void execute_5(char* char *);
extern void execute_6(char* char *);
extern void execute_5411(char* char *);
extern void execute_5412(char* char *);
extern void execute_5107(char* char *);
extern void execute_5108(char* char *);
extern void execute_5109(char* char *);
extern void execute_5110(char* char *);
extern void exec

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-11-20 22:08  d_CPU\
     目录           0  2019-11-20 22:08  d_CPU\d_CPU.cache\
     目录           0  2019-11-20 22:10  d_CPU\d_CPU.cache\compile_simlib\
     目录           0  2019-11-20 22:10  d_CPU\d_CPU.cache\compile_simlib\activehdl\
     目录           0  2019-11-20 22:10  d_CPU\d_CPU.cache\compile_simlib\ies\
     目录           0  2019-11-20 22:10  d_CPU\d_CPU.cache\compile_simlib\modelsim\
     目录           0  2019-11-20 22:10  d_CPU\d_CPU.cache\compile_simlib\questa\
     目录           0  2019-11-20 22:10  d_CPU\d_CPU.cache\compile_simlib\riviera\
     目录           0  2019-11-20 22:10  d_CPU\d_CPU.cache\compile_simlib\vcs\
     目录           0  2019-11-20 22:10  d_CPU\d_CPU.cache\compile_simlib\xcelium\
     目录           0  2019-12-04 09:04  d_CPU\d_CPU.cache\ip\
     目录           0  2019-12-04 09:04  d_CPU\d_CPU.cache\ip\2017.4\
     目录           0  2019-11-20 22:08  d_CPU\d_CPU.cache\wt\
     文件        8037  2019-12-04 09:09  d_CPU\d_CPU.cache\wt\gui_handlers.wdf
     文件        5694  2019-11-12 23:30  d_CPU\d_CPU.cache\wt\gui_resources.wdf
     文件        1830  2019-12-04 09:09  d_CPU\d_CPU.cache\wt\java_command_handlers.wdf
     文件          62  2019-12-04 09:04  d_CPU\d_CPU.cache\wt\project.wpc
     文件        5087  2019-11-19 18:13  d_CPU\d_CPU.cache\wt\synthesis.wdf
     文件        7204  2019-12-04 09:09  d_CPU\d_CPU.cache\wt\webtalk_pa.xml
     文件         256  2019-12-04 09:04  d_CPU\d_CPU.cache\wt\xsim.wdf
     目录           0  2019-11-20 22:08  d_CPU\d_CPU.hw\
     文件         290  2019-11-20 22:08  d_CPU\d_CPU.hw\d_CPU.lpr
     目录           0  2019-11-20 22:10  d_CPU\d_CPU.ip_user_files\
     文件         130  2019-11-12 16:57  d_CPU\d_CPU.ip_user_files\README.txt
     目录           0  2019-11-20 22:08  d_CPU\d_CPU.sim\
     目录           0  2019-11-20 22:08  d_CPU\d_CPU.sim\sim_1\
     目录           0  2019-11-20 22:08  d_CPU\d_CPU.sim\sim_1\behav\
     目录           0  2019-11-20 22:08  d_CPU\d_CPU.sim\sim_1\behav\.Xil\
     文件         460  2019-11-12 23:19  d_CPU\d_CPU.sim\sim_1\behav\ALU_test.tcl
     文件     8708519  2019-11-12 23:17  d_CPU\d_CPU.sim\sim_1\behav\ALU_test_behav.wdb
     文件         557  2019-11-12 23:18  d_CPU\d_CPU.sim\sim_1\behav\ALU_test_vlog.prj
............此处省略159个文件信息

评论

共有 条评论