Assembly 使用操作码和功能位的解码指令
我正在尝试设计一个流水线cpu模拟器。作为其中的一部分,我需要设计一个控制单元 我希望控制单元能做的是-设置以下标志的值:Assembly 使用操作码和功能位的解码指令,assembly,cpu,cpu-architecture,decoder,machine-instruction,Assembly,Cpu,Cpu Architecture,Decoder,Machine Instruction,我正在尝试设计一个流水线cpu模拟器。作为其中的一部分,我需要设计一个控制单元 我希望控制单元能做的是-设置以下标志的值: reg_write (=1 if the instruction writes a value to some register, =0 otherwise) mem_read (=1 if the instruction reads a value from memory, =0 otherwise) mem_write (=1 if the instruction wr
reg_write (=1 if the instruction writes a value to some register, =0 otherwise)
mem_read (=1 if the instruction reads a value from memory, =0 otherwise)
mem_write (=1 if the instruction writes a value to memory, =0 otherwise)
jump (=1 if the instruction is a jump instruction, =0 otherwise)
etc.
我需要将这些值设置为操作码的函数和指令的函数位。我该怎么做?什么是指令集体系结构,ARM,x86,MIPS,还有其他吗?@Danny:体系结构是MIPS