中山大学2020学年第一学期单周期CPU实验代码
实现的指令在“测试单周期CPU的简单方法.docx”
平台:vivado2017.4,板子型号xc7a35tcpg236-1
代码中调用了一个数码管的IP核,需要在设计中重新定向,名称 为“display_0”,定位到目录下的IPcore文件夹即可。
代码中有指令存储器的IP核,调用的文件是同目录下的“CPU.coe”文本文件
在代码中也有提供一个display的模块,需要修复一定的bug才能够在烧板子的时候正确显示
代码写的很乱,出现了不少琐碎文件和繁琐的数据转换。可能不便于阅读
文件只能够跑仿真,如果需要烧录到板子上,在top模块将三个输出使用的端口封闭后再综合文件(三个端口分别是pc、instr、alures)