diff options
author | 2022-04-24 12:44:37 +0200 | |
---|---|---|
committer | 2022-04-27 12:18:04 +0200 | |
commit | 623e248524a0ae8330606bbef108aa416b5cf85c (patch) | |
tree | b008c10aa660e76d76ae4a41d8f7e5f1a2dabd5a /src/devices/machine/iwm.h | |
parent | 1b3081129da5927c5f594022f664118a02840265 (diff) |
iwm: Do a complete clock change on sync write for better flux change time precision
iwm: Increate the flux write buffer size for better performance (complete sector write in a single call)
2gs: Correct the q3 clock value, making (sync) writes reliable
Diffstat (limited to 'src/devices/machine/iwm.h')
-rw-r--r-- | src/devices/machine/iwm.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/machine/iwm.h b/src/devices/machine/iwm.h index 5bae4443791..c4f13c09e6d 100644 --- a/src/devices/machine/iwm.h +++ b/src/devices/machine/iwm.h @@ -62,19 +62,18 @@ private: double m_q3_fclk_ratio, m_fclk_q3_ratio; u64 m_last_sync, m_next_state_change, m_sync_update, m_async_update; u64 m_flux_write_start; - std::array<u64, 16> m_flux_write; + std::array<u64, 65536> m_flux_write; u32 m_flux_write_count; u32 m_q3_clock; int m_active, m_rw, m_rw_state; u8 m_data, m_whd, m_mode, m_status, m_control, m_rw_bit_count; u8 m_rsh, m_wsh; u8 m_devsel; + bool m_q3_clock_active; u8 control(int offset, u8 data); u64 time_to_cycles(const attotime &tm) const; attotime cycles_to_time(u64 cycles) const; - u64 fclk_to_q3(u64 cycles) const; - u64 q3_to_fclk(u64 cycles) const; void mode_w(u8 data); void data_w(u8 data); @@ -82,9 +81,10 @@ private: u64 window_size() const; u64 half_window_size() const; u64 read_register_update_delay() const; - u64 write_sync_half_window_size() const; inline bool is_sync() const; void flush_write(u64 when = 0); + void write_clock_start(); + void write_clock_stop(); }; DECLARE_DEVICE_TYPE(IWM, iwm_device) |