/* 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 . */ /** Runtime Verbosity **/ //`define DEBUG_REG_WRITES //`define DEBUG_PC_ADDRESS //`define DEBUG_DATA_READ_WRITES /** OUTPUT **/ /* These are usually set at build time*/ //`define CALCULATE_IPC //`define OTUPUT_JSON_STATISTICS /** 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 /* Enables the ability in BIU to pre-decode two instructions, one after the other in memory*/ `define DOUBLE_INSTRUCTION_LOAD /* Size is in powers of two with minimal 3. * 3 : 8 Bytes * 4 : 16 Bytes * 5 : 32 Bytes * . : ... */ `define L1_CACHE_SIZE 4 /********** Internal **********/ `ifdef OTUPUT_JSON_STATISTICS `define CALCULATE_IPC `endif `ifdef DOUBLE_INSTRUCTION_LOAD /*Needed for DOUBLE_INSTRUCTION_LOAD*/ `define EARLY_VALID_INSTRUCTION `endif `ifdef EARLY_VALID_INSTRUCTION `define INCLUDE_EARLY_CALC_CIRUIT `define EARLY_VALID_INSTRUCTION_ 1 `else `define EARLY_VALID_INSTRUCTION_ 0 `endif `ifdef CALCULATE_IPC `define INCLUDE_EARLY_CALC_CIRUIT `endif