2019-02-07 22:54:06 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* 84n ST=0 n
|
|
|
|
* 85n ST=1 n
|
|
|
|
*/
|
|
|
|
|
2019-02-07 23:31:35 +01:00
|
|
|
`include "decstates.v"
|
|
|
|
|
|
|
|
`DEC_ST_EQ_0_N: begin
|
2019-02-09 19:18:58 +01:00
|
|
|
ST[nb_in] <= 0;
|
2019-02-07 23:31:35 +01:00
|
|
|
decstate <= `DEC_START;
|
|
|
|
`ifdef SIM
|
2019-02-09 19:18:58 +01:00
|
|
|
$display("%05h ST=0\t%h", inst_start_PC, nb_in);
|
2019-02-07 23:31:35 +01:00
|
|
|
`endif
|
|
|
|
end
|
|
|
|
`DEC_ST_EQ_1_N: begin
|
2019-02-09 19:18:58 +01:00
|
|
|
ST[nb_in] <= 1;
|
2019-02-07 23:31:35 +01:00
|
|
|
decstate <= `DEC_START;
|
|
|
|
`ifdef SIM
|
2019-02-09 19:18:58 +01:00
|
|
|
$display("%05h ST=1\t%h", inst_start_PC, nb_in);
|
2019-02-07 23:31:35 +01:00
|
|
|
`endif
|
|
|
|
end
|
2019-02-10 09:02:24 +01:00
|
|
|
`DEC_TEST_ST_EQ_0_N: begin
|
|
|
|
Carry <= (!ST[nb_in]);
|
|
|
|
decstate <= `DEC_TEST_GO;
|
|
|
|
`ifdef SIM
|
|
|
|
$display("%05h ?ST=0\t%h", inst_start_PC, nb_in);
|
|
|
|
`endif
|
|
|
|
end
|
|
|
|
`DEC_TEST_ST_EQ_1_N: begin
|
|
|
|
Carry <= (ST[nb_in]);
|
|
|
|
decstate <= `DEC_TEST_GO;
|
|
|
|
`ifdef SIM
|
|
|
|
$display("%05h ?ST=1\t%h", inst_start_PC, nb_in);
|
|
|
|
`endif
|
|
|
|
end
|