summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/aic580.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-10-25 18:29:58 -0400
committer AJR <ajrhacker@users.noreply.github.com>2019-10-25 18:29:58 -0400
commitcf3f4b2530770465d4f8f123dde94c7ab7032dd1 (patch)
treeef86b9d8b74f39c924cceaf50611a6aeb06234bd /src/devices/machine/aic580.cpp
parent405594f2a5bc88fd555accd0e7a0a2b67f29466d (diff)
aic580: Improve transfer speed calculation (nw)
Diffstat (limited to 'src/devices/machine/aic580.cpp')
-rw-r--r--src/devices/machine/aic580.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/devices/machine/aic580.cpp b/src/devices/machine/aic580.cpp
index d9f7b1cc321..c5bf3a51e96 100644
--- a/src/devices/machine/aic580.cpp
+++ b/src/devices/machine/aic580.cpp
@@ -141,8 +141,11 @@ u8 aic580_device::r80_r()
void aic580_device::transfer_speed_w(u8 data)
{
- const unsigned div = BIT(data, 3) ? (data & 3) + 5 : 4;
- logerror("Transfer speed = %.2f MB/s\n", clock() * 2.0E-6 / div);
+ logerror("Transfer speed: %dns read pulse, %dns strobe off, %dns write pulse (%.2f MB/s)\n",
+ int(1.0E9 * (((data & 0x30) >> 4) + 2) / clock()),
+ int(1.0E9 * (((data & 0x08) >> 3) + 2) / clock()),
+ int(1.0E9 * ((data & 0x07) + 2) / clock()),
+ clock() * 2.0E-6 / ((BIT(data, 3) ? 5 : 4) + (data & 7)));
}