目前的模型机控制器大多采用微程序控制方式,而组合逻辑控制方式执行速度较快,在精简指令系统中被广泛应用。本文采用QuartusⅡ和Cyclone FPGA构建模型机的组合逻辑控制器。首先,通过设计模型机的指令系统、指令流程、控制信号等,列出各控制信号的逻辑表达式,并对逻辑表达式进行化简;其次,通过QuartusⅡ软件,利用原理图输入法设计组合逻辑控制器的指令译码器和组合逻辑电路模块,并搭配好各自的时序电路,形成完整的模型机控制器;最后把编译好的原理图文件下载到Altera DE2实验板上进行验证。此设计应用了可编程逻辑器件,提高了指令的执行速度,增强了设计的灵活性,且将该控制器与运算器等部件搭建,形成完整的模型机应用于计算机组成原理课程的实验教学中,能很好地提高学生的思维能力和动手能力。
Most of the present model controllers use micro program control mode, however, the combinational logic controller executes fast, so it is widely used in the reduced instruction systems. Quartus II and Cyclone FPGA are used to realize combinational logic controller designing. Firstly, according to machine instruction system model, instruction process, control signals, etc. , the logical expressions of each control signal are listed and simplified; Secondly, Quartus II software is adopted, and the principle diagram input method is applied to design the instruction decoder and combinational logic circuit module of combinational logic controller by timing circuit, and then model controller is tormed; Finally, the compiled schematic document is downloaded to Altera DE2 experimental board. The application of the programmable logic device improves the instruction execution speed and enhances designing flexibility. The controller and the arithmetic unit anti other components can he connected flexibly to form a complete model used in experimeutal teaching of computer composition principle. The reform can well improve students' thinking ability and practical ability.