Hi!
I suggest to use A5 and A8 inputs as 8580/6581 modes switch when compiled as a single SID (SID2 not defined).
i propose change to these lines:
|
sid::cfg_t sid1_cfg = { sid::MOS6581, sid::D400, 9'd250, 11'sd0 }; |
|
sid::cfg_t sid2_cfg = { sid::MOS6581, sid::D400, 9'd250, 11'sd0 }; |
change it to:
sid::cfg_t sid1_cfg = { cs.a5 ? sid::MOS8580 : sid::MOS6581, sid::D400, 9'd250, -11'sd384 };
sid::cfg_t sid2_cfg = { ~cs.a8 ? sid::MOS8580 : sid::MOS6581, sid::D400, 9'd250, -11'sd384 };
{A8,A5} will do:
11 - 8581+6580
01 - 2x6581
10 - 2x8580
So, if user will connect 3-positions switch to A8 and A5 with middle pin to GND, then in middle position it will be a mix of 6581 and 8580 and on side positions it will be either 6581 or 8580. Similar to SIDFX board.
in pcf file these pins need to be pulled up which shouldn't harm as pullup resistor is very weak (20K-100K). So it won't require external pullup resistors.
I believe 99% users will need this mode. Generic user just need to play games and thus simply need to switch between 6581 and 8580 in real time.
I've also added -384 fc_offset, so 6581 mode sounds more generic way like 6581R2/R3 (R4, R4AR are muffling IMHO).
If you want, i can make pull request with required changes.
Hi!
I suggest to use A5 and A8 inputs as 8580/6581 modes switch when compiled as a single SID (SID2 not defined).
i propose change to these lines:
reDIP-SID/gateware/sid_api.sv
Lines 74 to 75 in c4514e9
change it to:
{A8,A5} will do:
11 - 8581+6580
01 - 2x6581
10 - 2x8580
So, if user will connect 3-positions switch to A8 and A5 with middle pin to GND, then in middle position it will be a mix of 6581 and 8580 and on side positions it will be either 6581 or 8580. Similar to SIDFX board.
in pcf file these pins need to be pulled up which shouldn't harm as pullup resistor is very weak (20K-100K). So it won't require external pullup resistors.
I believe 99% users will need this mode. Generic user just need to play games and thus simply need to switch between 6581 and 8580 in real time.
I've also added -384 fc_offset, so 6581 mode sounds more generic way like 6581R2/R3 (R4, R4AR are muffling IMHO).
If you want, i can make pull request with required changes.