Xilinx-fpga-CPU架构2-23-24
更新时间:2023-09-01 00:28:01 阅读量: 教育文库 文档下载
Xilinx-FPGA/PLD:B603教室Xilinx Confidential -软件学院 西安电子科技大学
PARWAN-2
沈沛意、张亮 pyshen@http://www.77cn.com.cn
Recap: Parwan Bussing structure 4K memory: 16(pages)*256 vs. 4bit(pages)+8bit (locations)
Presentation Name 2
西安电子科技大学-软件学院
Demo:LIBRARY cmos; USE cmos.basic_utilities.ALL; LIBRARY par_library; USE par_library.par_utilities.ALL; USE par_library.par_parameters.ALL; -ENTITY par_central_processing_unit is GENERIC(read_high_time,read_low_time,write_high_time,write_low_time:TIME:=2US; cycle_time :TIME := 4US); PORT(clk: IN qit; interrupt: IN qit; read_mem,write_mem: OUT qit; databus:INOUT wired_byte BUS: = ‘ZZZZZZZZ’; adbus: OUT twelve); END par_central_processing_unit;
Presentation Name 3
西安电子科技大学-软件学院
Outline of the parwan behavioral description-ARCHITECTURE behavioral OF par_central_processing_unit IS BEGIN PROCESS IF interrupt =‘1’ THEN HANDLE INTERRUPT; ELSE – no interrupt READ FIRST BYTE INTO byte1, INCREMENT pc; IF byte1(7 downto 4) = single_byte_instructions THEN EXECUTE SINGLE_BYTE_INSTRUCTIONS ELSE – TWO BYTE INSTRUCTIONS READ SECOND BYTE INTO byte2, increment pc; IF byte1(7 downto 5) = jsr THEN EXECUTE jsr INSTRUCTION, byte2 HAS ADDRESS; ELSEIF byte1(7 downto 5) = bra THEN EXECUTE bra INSTRUCTION, ADDRESS IN byte2; ELSE –ALL OTHER TWO-BYTE INSTRUCTIONS ---END PROCESS; END behavioral;Presentation Name 4 西安电子科技大学-软件学院
---ELSE –ALL OTHER TWO-BYTE INSTRUCTIONS IF byte1(4) = indirect THEN USE byte1 and byte2 to get address; ENDIF; -- END indirect IF byte1(7 downto 5) = imp THEN EXECUTE jmp INSTRUCTIONS ELSEIF byte1(7 downto 5) = sta THEN EXECUTE sta INSTRUCTIONS, WIRTE ac; ELSE – READ OPERAND FOR lda, and, add, sub READ MEMORY ONTO databus; EXECUTE lda, and, add, sub; REMOVE MEMORY FROM databus; END IF; --jmp/sta/lda,and,add,sub END IF; -- jsr/bra/other double-byte instructions; END IF; --SINGLE BYTE /DOUBLE BYTE END IF; -- INTERRUPT / OTEHRWISE END PROCESS; END behavioral;Presentation Name 5 西安电子科技大学-软件学院
1.JSR execution An example of the execution of the jsr. Memory and pc are before and after jsr.
Presentation Name 6
西安电子科技大学-软件学院
An example of indirected addressing in Parwan– Indirect address: any page and any offset
Presentation Name 7
西安电子科技大学-软件学院
Indirect addressing affects offset only To obtain actual address full addressing is used To obtain data page addressing is used
Presentation Name 8
西安电子科技大学-软件学院
2. par_utilities package
Presentation Name 9
西安电子科技大学-软件学院
Presentation Name 10
西安电子科技大学-软件学院
Declarations of package of par_library Utilities required, and included in par_utilitiesPresentation Name 11 西安电子科技大学-软件学院
2.1 Functions为什么 这样设 计?
Presentation N
ame 12
西安电子科技大学-软件学院
Presentation Name 13
西安电子科技大学-软件学院
3. parameters
Presentation Name 14
西安电子科技大学-软件学院
4. Variables and behavioral descriptions Variable declarations of the behavioral model
Interrupt handling
Presentation Name 15
西安电子科技大学-软件学院
Read the first byte from mem
Read the second byte from mem
Presentation Name 16
西安电子科技大学-软件学院
Executing single byte instructions
Presentation Name 17
西安电子科技大学-软件学院
Execution of the jsr instruction
Execution of the branch instruction
Presentation Name 18
西安电子科技大学-软件学院
Handling the indirect address
Execution of jmp instruction Execution of sta instruction
Presentation Name 19
西安电子科技大学-软件学院
正在阅读:
安全科内部管理规章制度04-15
工程经济学复习题及参考答案打印版10-06
新视野商务英语视听说(第二版) 上册 第九单元听力原文04-11
开平市智能装备制造行业研究报告06-26
人教A版高中数学必修四高一下学期期末考试试题(13)11-05
象山县2010年“百千”工程建设情况汇报04-21
MC55 TCP(R3透传)使用方法04-26
几何训练203-15
- exercise2
- 铅锌矿详查地质设计 - 图文
- 厨余垃圾、餐厨垃圾堆肥系统设计方案
- 陈明珠开题报告
- 化工原理精选例题
- 政府形象宣传册营销案例
- 小学一至三年级语文阅读专项练习题
- 2014.民诉 期末考试 复习题
- 巅峰智业 - 做好顶层设计对建设城市的重要意义
- (三起)冀教版三年级英语上册Unit4 Lesson24练习题及答案
- 2017年实心轮胎现状及发展趋势分析(目录)
- 基于GIS的农用地定级技术研究定稿
- 2017-2022年中国医疗保健市场调查与市场前景预测报告(目录) - 图文
- 作业
- OFDM技术仿真(MATLAB代码) - 图文
- Android工程师笔试题及答案
- 生命密码联合密码
- 空间地上权若干法律问题探究
- 江苏学业水平测试《机械基础》模拟试题
- 选课走班实施方案
- 架构
- Xilinx
- fpga
- CPU
- 23
- 24
- 小学生古诗词知识竞赛题(附答案)
- (修)煤矿安全生产方针及法律法规(煤矿矿长培训)
- 高等钢结构理论2013 第3章 塑性设计-习题修订
- 公司治理结构的国际比较及发展趋势研究
- 山东国资委下属企业一共有66家
- 价值与价值观
- 细胞程序性死亡对生物发育的意义
- 2013年上半年国产小型车市场易车指数分析报告
- 首季开门红补充考核方案(员工)
- 计算机算法导论 第11章
- 交通厅建设标准化推进会汇报材料
- 酶学和酶工程试题
- 电脑显卡HDMI接口连接显示器HDMI接口无声音我来帮你!有图有真相
- 发动机齿轮齿数
- 《公关礼仪》读书笔记
- 明溪口镇当前工作情况汇报
- 全国计算机一级考试题库(附答案)
- 人教版七年级上册英语单词表-(中英文对照)
- 文献检索试题2011-12(2)
- 哈姆雷特独白