optimize SETDEC

This commit is contained in:
Raphael Jacquot 2019-02-08 11:55:47 +01:00
parent 0f456bf0af
commit a56f472a45
4 changed files with 4 additions and 17 deletions

View file

@ -6,10 +6,8 @@
`include "decstates.v"
//`DEC_SETHEX:
begin
hex_dec <= `MODE_HEX;
// execute_cycle <= 0;
decstate <= `DEC_START;
`ifdef SIM
$display("%05h SETHEX", inst_start_PC);

View file

@ -7,9 +7,8 @@
`include "decstates.v"
`DEC_SETDEC: begin
begin
hex_dec <= `MODE_DEC;
execute_cycle <= 0;
decstate <= `DEC_START;
`ifdef SIM
$display("%05h SETDEC", inst_start_PC);

View file

@ -8,17 +8,10 @@
case (nibble)
4'h3:
`include "opcodes/03_RTNCC.v"
// execute_cycle <= 1;
// decstate <= `DEC_RTNCC;
4'h4: begin
4'h4:
`include "opcodes/04_SETHEX.v"
// execute_cycle <= 1;
// decstate <= `DEC_SETHEX;
end
4'h5: begin
execute_cycle <= 1;
decstate <= `DEC_SETDEC;
end
4'h5:
`include "opcodes/05_SETDEC.v"
default: begin
$display("ERROR : DEC_0X");
decode_error <= 1;

View file

@ -327,9 +327,6 @@ always @(posedge dec_strobe) begin
endcase
end
`include "opcodes/0x.v"
// `include "opcodes/03_RTNCC.v"
//`include "opcodes/04_SETHEX.v"
`include "opcodes/05_SETDEC.v"
`include "opcodes/2n_P_EQ_n.v"
`include "opcodes/3n[x...]_LC.v"
`include "opcodes/6xxx_GOTO.v"