2023-02-13 16:49:17 +00:00
|
|
|
/* config.v - Configuration values for the 9086 CPU and the system around it
|
|
|
|
|
|
|
|
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-10 03:05:56 +00:00
|
|
|
/** Runtime Verbosity **/
|
2023-02-15 03:53:05 +00:00
|
|
|
//`define DEBUG_REG_WRITES
|
|
|
|
//`define DEBUG_PC_ADDRESS
|
2023-05-10 03:05:56 +00:00
|
|
|
//`define DEBUG_DATA_READ_WRITES
|
|
|
|
|
2023-05-14 15:06:33 +00:00
|
|
|
/** OUTPUT **/
|
|
|
|
/* These are usually set at build time*/
|
|
|
|
//`define CALCULATE_IPC
|
|
|
|
//`define OTUPUT_JSON_STATISTICS
|
|
|
|
|
2023-05-10 03:05:56 +00:00
|
|
|
/** Optimisations **/
|
|
|
|
|
|
|
|
/* Enables the ability to check if an instruction in the input
|
|
|
|
* buffer is completed and mark it ready instead of always waiting
|
|
|
|
* for the maximum instruction size worth of bytes */
|
|
|
|
`define EARLY_VALID_INSTRUCTION
|
|
|
|
|
2023-05-11 15:28:10 +00:00
|
|
|
/* Size is in powers of two with minimal 3.
|
|
|
|
* 3 : 8 Bytes
|
|
|
|
* 4 : 16 Bytes
|
|
|
|
* 5 : 32 Bytes
|
|
|
|
* . : ... */
|
|
|
|
`define L1_CACHE_SIZE 4 // Don't change it! some parts of code still assume it to be 4
|
2023-05-10 03:05:56 +00:00
|
|
|
|
|
|
|
|
2023-05-11 15:28:10 +00:00
|
|
|
|
|
|
|
/********** Internal **********/
|
2023-05-10 03:05:56 +00:00
|
|
|
`ifdef EARLY_VALID_INSTRUCTION
|
|
|
|
`define EARLY_VALID_INSTRUCTION_ 1
|
|
|
|
`else
|
|
|
|
`define EARLY_VALID_INSTRUCTION_ 0
|
|
|
|
`endif
|
2023-05-14 15:06:33 +00:00
|
|
|
|
|
|
|
`ifdef OTUPUT_JSON_STATISTICS
|
|
|
|
`define CALCULATE_IPC
|
|
|
|
`endif
|