module dec_seq ( FR, // Flag Register
IR, // Instruction Register
CLK, // Clock
RST, // Reset
ACK, // Memory & I/O Acknowledge
ICS, // Instruction Complete Signal (命令の最後のサイクルであることを示す信号)
HALT, // HALT state
DBI1, DBI2, // Input control for Input Buffer
MREQ, // Memory Request
IORQ, // I/O Request
RW, // Read/Write (Write Signal)
ACC_R, ACC_W, // ACC Control
IXR_R, IXR_W, // IXR Control
SP_R, SP_W, // SP Control
PC_R, PC_W, PC_I, // PC Control
AR_W1, AR_W2, // AR Control
IR_R12, IR_R8P1, // IR Control
IR_R8P2, IR_R8M2, IR_W,
FR_W, // FR Control
ALU ); // ALU Control
input [ 3:0] FR;
input .........
input .........
//
// Control Signals
//
output ICS, HALT, DBI1, DBI2;
output .........
output .........
output [3:0] ALU;
//------------------------------------------------------------------//
// State Transition
//------------------------------------------------------------------//
......
......
......
end
//------------------------------------------------------------------//
// BRANCH flag & SIGN flag are made from IR and FR
//------------------------------------------------------------------//
......
......
......
end
//------------------------------------------------------------------//
// Controls
//------------------------------------------------------------------//
......
......
......
end
endmodule
次は、 ステートおよび命令コードの定義 についてみていきます。