2023-02-10 12:02:20 +00:00
|
|
|
`define PROC_HALT_STATE 4'b0000
|
2023-02-09 14:46:21 +00:00
|
|
|
|
|
|
|
/*INSTRUCTION FETCH STATE*/
|
2023-02-10 12:02:20 +00:00
|
|
|
`define PROC_IF_STATE_ENTRY 4'b0001
|
|
|
|
`define PROC_IF_WRITE_CIR 4'b0010
|
|
|
|
`define PROC_IF_STATE_EXTRA_FETCH_SET 4'b0011
|
|
|
|
`define PROC_IF_STATE_EXTRA_FETCH 4'b1111 /******/
|
2023-02-09 14:46:21 +00:00
|
|
|
|
|
|
|
/*DECODE SATE*/
|
2023-02-10 12:02:20 +00:00
|
|
|
`define PROC_DE_STATE_ENTRY 4'b0100
|
|
|
|
`define PROC_DE_LOAD_16_PARAM 4'b0101
|
|
|
|
`define PROC_DE_LOAD_16_EXTRA_FETCH_SET 4'b0110
|
|
|
|
`define PROC_DE_LOAD_16_EXTRA_FETCH 4'b0111
|
2023-02-09 14:46:21 +00:00
|
|
|
|
2023-02-11 20:27:28 +00:00
|
|
|
/*MEM/IO READ*/
|
|
|
|
`define RPOC_MEMIO_READ 4'b1100
|
|
|
|
`define PROC_MEMIO_SETADDR 4'b1101
|
|
|
|
`define PROC_MEMIO_GET_ALIGNED_DATA 4'b1110 /* :) */
|
|
|
|
`define PROC_MEMIO_GET_UNALIGNED_DATA 4'b1010 /* :( */
|
|
|
|
|
2023-02-09 14:46:21 +00:00
|
|
|
/*EXECUTE STATE*/
|
2023-02-10 12:02:20 +00:00
|
|
|
`define PROC_EX_STATE_ENTRY 4'b1000
|
|
|
|
`define PROC_EX_STATE_EXIT 4'b1001
|