Closed somhi closed 1 year ago
to be checked: cur_rate = 28'd50000000; before was 30000000
in MiST ports it is only used by sound, not floppy or rtc
RTC commit by Gyurco has not been ported back https://github.com/somhi/PCXT_DeMiSTify/commit/2b657e02abf6ef2adba42cc859c3dc1bdb90047b
There are some problems, the floppy drive doesn't work even returning the cur_rate value to 30000000, and the CMS sound has gotten worse. I reject the PR for the moment, but we will examine what can be gained from these changes.
I have reopened the PR because I have seen that some things can work. However, I would like to get @kitune-san's opinion on this.
This commit works, but I'd prefer kitune-san to assess it, as the operation is apparently the same: https://github.com/MiSTer-devel/PCXT_MiSTer/pull/79/commits/3032e51f1f36249d12cb15529cf9459227836b8b
This commit creates some kind of conflict with the floppy drive, it stops working, let's see if kitune-san can shed some more light on the possible reason, because especially regarding the audio clocks, it seems more optimal to me: https://github.com/MiSTer-devel/PCXT_MiSTer/pull/79/commits/5fc54a6d3f2bdd73ae7692027424fb9eee095c9d. With these changes and cur_rate = 50000000
, the pitch of game blaster seems to be the right one.
I attached binary resulting from these changes:
1. This commit works, but I'd prefer kitune-san to assess it, as the operation is apparently the same: [3032e51](https://github.com/MiSTer-devel/PCXT_MiSTer/commit/3032e51f1f36249d12cb15529cf9459227836b8b)
If it works properly at the fastest cpu clock setting, you can apply that setting.
2. This commit creates some kind of conflict with the floppy drive, it stops working, let's see if kitune-san can shed some more light on the possible reason, because especially regarding the audio clocks, it seems more optimal to me: [5fc54a6](https://github.com/MiSTer-devel/PCXT_MiSTer/commit/5fc54a6d3f2bdd73ae7692027424fb9eee095c9d). With these changes and `cur_rate = 50000000`, the pitch of game blaster seems to be the right one.
When I added the FDD module. cur_rate was used only by the FDD module. (I didn't think other modules would use it.) The background of the change to 30000000 can be found below. https://misterfpga.org/viewtopic.php?p=61307#p61307 https://misterfpga.org/viewtopic.php?p=61477#p61477
If you want to set cur_rate to 50000000, I think the conflict can be resolved by changing the value of clock_rate or delay_adder in Floppy.v.
If you want to set cur_rate to 50000000, I think the conflict can be resolved by changing the value of clock_rate or delay_adder in Floppy.v.
I understand, thank you.
However, with these changes... floppy doesn't work anymore even if I lower it back down to 30000000.
"clk_rate" and "clock_rate" are mixed up, so please unify either of them.
https://github.com/somhi/PCXT_DeMiSTify