OpenRISC處理器寄存器級(jí)仿真與實(shí)現(xiàn)
發(fā)布時(shí)間:2019-06-19 06:21
【摘要】:片上系統(tǒng)(SoC)功能的不斷增強(qiáng),設(shè)計(jì)復(fù)雜度和難度的不斷增加以及產(chǎn)品上市周期的日益縮短,使得處理器仿真技術(shù)得到了越來(lái)越多的重視。處理器仿真不僅在硬件設(shè)計(jì)階段可作為處理器功能驗(yàn)證的參照模型發(fā)揮重大作用,而且在軟件設(shè)計(jì)階段可作為軟件開(kāi)發(fā)環(huán)境中的系統(tǒng)支撐平臺(tái)而具有重大意義。為了推動(dòng)開(kāi)源OpenRISC處理器技術(shù)的發(fā)展,驗(yàn)證基于SystemC仿真語(yǔ)言進(jìn)行處理器仿真的優(yōu)點(diǎn),本文使用SystemC對(duì)開(kāi)源OpenRISC處理器進(jìn)行了仿真,給出了OpenRISC處理器最小系統(tǒng)的仿真實(shí)現(xiàn),并重點(diǎn)介紹了OpenRISC流水線(xiàn)仿真設(shè)計(jì)與實(shí)現(xiàn),可為基于SystemC的OpenRISC處理器的進(jìn)一步仿真和開(kāi)發(fā)奠定基礎(chǔ)。 本文的研究工作主要包括: 首先對(duì)處理器仿真技術(shù)和SystemC硬件仿真平臺(tái)進(jìn)行了分析;詳細(xì)介紹了處理器仿真技術(shù)中的指令集仿真技術(shù)和結(jié)構(gòu)仿真技術(shù)的功能特點(diǎn),SystenC硬件仿真平臺(tái)下的設(shè)計(jì)方法學(xué)、仿真內(nèi)核和進(jìn)程的特點(diǎn)和功能。 其次,分析了OpenRISC1200處理器核的結(jié)構(gòu)框架,并通過(guò)對(duì)額外單元的裁剪給出了最小系統(tǒng);最小系統(tǒng)包括整數(shù)流水單元、寄存器單元和內(nèi)存;分析了流水線(xiàn)各級(jí)的作用,各級(jí)中可能發(fā)生的冒險(xiǎn),發(fā)生冒險(xiǎn)的條件以及各種冒險(xiǎn)的解決方案。介紹了OpenRISC為匹配主存與CPU性能差異采用的Cache技術(shù)的特點(diǎn);還對(duì)OpenRISC指令集的特點(diǎn)分析和分類(lèi)。 然后,采用SystemC對(duì)OpenRISC處理器流水線(xiàn)進(jìn)行了仿真設(shè)計(jì),給出了OpenRISC處理器整體設(shè)計(jì)框架;實(shí)現(xiàn)了流水線(xiàn)中IF級(jí)的genpc模塊的仿真,ID級(jí)的control模塊和rf模塊的仿真,,EXE級(jí)的operandmuxes模塊和alu模塊的仿真,MA級(jí)的lsu模塊的仿真和WB級(jí)中的wbmux模塊的仿真;同時(shí)給出了Cache的仿真實(shí)現(xiàn)。 最后結(jié)合SystemC仿真開(kāi)發(fā)平臺(tái),對(duì)其進(jìn)行必要的初始化工作后;針對(duì)數(shù)據(jù)冒險(xiǎn)、流水線(xiàn)阻塞、流水線(xiàn)綜合性能和Cache功能分別設(shè)計(jì)了相應(yīng)的測(cè)試用例,給出了其中相關(guān)的代碼及執(zhí)行結(jié)果;理論分析和實(shí)驗(yàn)結(jié)果都表明基于仿真語(yǔ)言SystemC對(duì)OpenRISC處理器核的仿真是可行的,可在此基礎(chǔ)上繼續(xù)開(kāi)發(fā)和完善并將其用于支持基于OpenRISC的軟硬件系統(tǒng)的開(kāi)發(fā)設(shè)計(jì)。
[Abstract]:With the increasing function of on-chip system (SoC), the increasing complexity and difficulty of design and the shortening of product marketing cycle, more and more attention has been paid to processor simulation technology. Processor simulation can not only play an important role in the hardware design phase as a reference model for processor function verification, but also play an important role in the software design phase as a system support platform in the software development environment. In order to promote the development of open source OpenRISC processor technology and verify the advantages of processor simulation based on SystemC simulation language, this paper uses SystemC to simulate open source OpenRISC processor, gives the simulation implementation of OpenRISC processor minimum system, and focuses on the design and implementation of OpenRISC pipeline simulation, which can lay a foundation for the further simulation and development of OpenRISC processor based on SystemC. The research work of this paper mainly includes: firstly, the processor simulation technology and SystemC hardware simulation platform are analyzed, and the functional characteristics of instruction set simulation technology and structure simulation technology in processor simulation technology, the design methodology under SystenC hardware simulation platform, the characteristics and functions of simulation kernel and process are introduced in detail. Secondly, the structure framework of OpenRISC1200 processor core is analyzed, and the minimum system is given by cutting the additional units. The minimum system includes integer pipeline unit, register unit and memory. The function of pipeline level, the possible risks in all levels, the conditions for taking risks and the solutions of various adventures are analyzed. This paper introduces the characteristics of Cache technology used in OpenRISC to match the performance difference between main memory and CPU, and analyzes and classifies the characteristics of OpenRISC instruction set. Then, the OpenRISC processor pipeline is simulated by SystemC, and the overall design framework of OpenRISC processor is given, including the simulation of IF module in IF level, the simulation of control module and rf module in ID level, the simulation of operandmuxes module and alu module in EXE level, the simulation of lsu module in MA level and the simulation of wbmux module in WB level. At the same time, the simulation implementation of Cache is given. Finally, combined with SystemC simulation development platform, the necessary initialization work is carried out, and the corresponding test cases are designed for data adventure, pipeline blocking, pipeline synthesis performance and Cache function, and the related code and execution results are given. The theoretical analysis and experimental results show that the simulation of OpenRISC processor core based on simulation language SystemC is feasible, on the basis of which it can be further developed and improved and used to support the development and design of software and hardware system based on OpenRISC.
【學(xué)位授予單位】:湖南大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2013
【分類(lèi)號(hào)】:TP332
本文編號(hào):2502166
[Abstract]:With the increasing function of on-chip system (SoC), the increasing complexity and difficulty of design and the shortening of product marketing cycle, more and more attention has been paid to processor simulation technology. Processor simulation can not only play an important role in the hardware design phase as a reference model for processor function verification, but also play an important role in the software design phase as a system support platform in the software development environment. In order to promote the development of open source OpenRISC processor technology and verify the advantages of processor simulation based on SystemC simulation language, this paper uses SystemC to simulate open source OpenRISC processor, gives the simulation implementation of OpenRISC processor minimum system, and focuses on the design and implementation of OpenRISC pipeline simulation, which can lay a foundation for the further simulation and development of OpenRISC processor based on SystemC. The research work of this paper mainly includes: firstly, the processor simulation technology and SystemC hardware simulation platform are analyzed, and the functional characteristics of instruction set simulation technology and structure simulation technology in processor simulation technology, the design methodology under SystenC hardware simulation platform, the characteristics and functions of simulation kernel and process are introduced in detail. Secondly, the structure framework of OpenRISC1200 processor core is analyzed, and the minimum system is given by cutting the additional units. The minimum system includes integer pipeline unit, register unit and memory. The function of pipeline level, the possible risks in all levels, the conditions for taking risks and the solutions of various adventures are analyzed. This paper introduces the characteristics of Cache technology used in OpenRISC to match the performance difference between main memory and CPU, and analyzes and classifies the characteristics of OpenRISC instruction set. Then, the OpenRISC processor pipeline is simulated by SystemC, and the overall design framework of OpenRISC processor is given, including the simulation of IF module in IF level, the simulation of control module and rf module in ID level, the simulation of operandmuxes module and alu module in EXE level, the simulation of lsu module in MA level and the simulation of wbmux module in WB level. At the same time, the simulation implementation of Cache is given. Finally, combined with SystemC simulation development platform, the necessary initialization work is carried out, and the corresponding test cases are designed for data adventure, pipeline blocking, pipeline synthesis performance and Cache function, and the related code and execution results are given. The theoretical analysis and experimental results show that the simulation of OpenRISC processor core based on simulation language SystemC is feasible, on the basis of which it can be further developed and improved and used to support the development and design of software and hardware system based on OpenRISC.
【學(xué)位授予單位】:湖南大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2013
【分類(lèi)號(hào)】:TP332
【參考文獻(xiàn)】
相關(guān)期刊論文 前1條
1 楊榮;朱建彬;胡博;朱勇;;基于SystemC的片上系統(tǒng)設(shè)計(jì)[J];武漢科技學(xué)院學(xué)報(bào);2008年07期
本文編號(hào):2502166
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2502166.html
最近更新
教材專(zhuān)著