Abstract:
In the teaching process of microcomputer principles course,compared with specific CPU,a modeled CPU has the advantages of flexible instruction set and high generality.RISCV is an open standard Instruction Set Architecture (ISA) enabling a new era of processor innovation through open collaboration,which is very suitable for the teaching of microcomputer principles course.However,there is a lack of an integrated development environment for assembly language programming with a model machine of the RISCV architecture.This paper proposes a design scheme for RISCV model machine assembler,and implements the RISCV assembly language programming integrated development environment for teaching purpose.It enables the source program input,editing,assembly,debugging,and simulation,and can generate RISCV machine code file which can be executed on the model machine.The proposed assembler can help students better understand structure and function of CPU,and better learn the microcomputer interface design method.Moreover,it motivates the students innovative awareness of designing and implementing model CPUs based on open ISA.