hp-saturn/opcodes/8[4567]n_work_test_ST.v

36 lines
759 B
Coq
Raw Normal View History

2019-02-07 22:54:06 +01:00
/******************************************************************************
* 84n ST=0 n
* 85n ST=1 n
*/
`include "decstates.v"
`DEC_ST_EQ_0_N: begin
2019-02-09 19:18:58 +01:00
ST[nb_in] <= 0;
decstate <= `DEC_START;
`ifdef SIM
2019-02-09 19:18:58 +01:00
$display("%05h ST=0\t%h", inst_start_PC, nb_in);
`endif
end
`DEC_ST_EQ_1_N: begin
2019-02-09 19:18:58 +01:00
ST[nb_in] <= 1;
decstate <= `DEC_START;
`ifdef SIM
2019-02-09 19:18:58 +01:00
$display("%05h ST=1\t%h", inst_start_PC, nb_in);
`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