2023-05-11 11:11:17 +00:00
|
|
|
/* exec_state_def.v - Definitions of the states in the main state machine
|
2023-02-13 16:49:17 +00:00
|
|
|
of the 9086 CPU.
|
|
|
|
|
|
|
|
This file is part of the 9086 project.
|
|
|
|
|
|
|
|
Copyright (c) 2023 Efthymios Kritikos
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
|
|
2023-05-11 11:11:17 +00:00
|
|
|
`define EXEC_STATE_BITS 4
|
2023-02-14 13:13:40 +00:00
|
|
|
|
|
|
|
|
2023-11-04 15:33:23 +00:00
|
|
|
//TODO: Please clean this up
|
2023-05-17 20:28:50 +00:00
|
|
|
`define EXEC_WAIT 4'b1100
|
2023-03-03 06:29:06 +00:00
|
|
|
|
2023-02-09 14:46:21 +00:00
|
|
|
/*DECODE SATE*/
|
2023-05-11 11:11:17 +00:00
|
|
|
`define EXEC_DE_LOAD_REG_TO_PARAM 4'b0011
|
2023-02-09 14:46:21 +00:00
|
|
|
|
2023-02-11 20:27:28 +00:00
|
|
|
/*MEM/IO READ*/
|
2023-05-11 11:11:17 +00:00
|
|
|
`define EXEC_MEMIO_READ 4'b0101
|
|
|
|
`define EXEC_MEMIO_READ_SETADDR 4'b0110
|
2023-02-11 20:27:28 +00:00
|
|
|
|
2023-02-09 14:46:21 +00:00
|
|
|
/*EXECUTE STATE*/
|
2023-05-11 11:11:17 +00:00
|
|
|
`define EXEC_WRITE_ENTRY 4'b1000
|
2023-02-14 13:13:40 +00:00
|
|
|
|
|
|
|
/*MEM/IO WRITE*/
|
2023-05-11 11:11:17 +00:00
|
|
|
`define EXEC_MEMIO_WRITE 4'b0111
|
2023-05-07 12:34:15 +00:00
|
|
|
|
2023-05-11 11:11:17 +00:00
|
|
|
`define EXEC_NEXT_INSTRUCTION 4'b1001
|
2023-02-22 01:28:23 +00:00
|
|
|
|
2023-05-11 11:11:17 +00:00
|
|
|
`define EXEC_NEXT_MICROCODE 4'b1010
|
2023-03-04 06:22:28 +00:00
|
|
|
|
2023-05-11 11:11:17 +00:00
|
|
|
`define EXEC_RESET 4'b1011
|
2023-05-16 12:33:08 +00:00
|
|
|
|
|
|
|
`define EXEC_JUMP_RELEASE 4'b1101
|