发布于 2017-12-31 20:54:27
模拟CPU吗?
CPU Sim似乎符合这一要求。
CPU Sim是一个Java应用程序,允许用户在微码级别设计简单的计算机CPU,并通过仿真在这些CPU上运行机器语言或汇编语言程序。它可用于模拟各种体系结构,包括基于累加器的、类似于RISC的或基于堆栈(如JVM)的体系结构。这是一个有用的工具,教师希望他们的学生能够亲自接触到各种架构,并有机会设计和实现自己的架构,并用机器语言和汇编语言为他们的体系结构编写程序。CPU Sim应用程序是一个完全集成的开发环境,包括以下特性。
Tools for designing a CPU at the register-transfer level:
Dialogs for specifying the number and width of registers, register arrays, and RAMs.
Dialogs for specifying the microinstructions (e.g., bit transfers between registers)
that are used to implement the machine instructions
A dialog for specifying the machine instructions, including:
the number of bits in each instruction
the opcode value and the number of bits the opcode occupies
the number of the operands and the properties of each operand
the semantics of each instruction
(as specified by a sequence of microinstructions)
A text editor with syntax highlighting for writing assembly language programs
An assembler for converting assembly programs into machine code for the user's CPU.
A debugger for stepping forward and backward through the execution of such programs,
inspecting and optionally changing the machine state after each step.
它是用Java编写的,需要一个JRE,因此可以推测它将在Linux上运行,而且它是免费的。
发布于 2018-12-29 08:00:11
密苏里州立大学开发的火星相当不错。我是在看2014年UCB的CS61C讲座时发现的。

https://softwarerecs.stackexchange.com/questions/47850
复制相似问题