Google-apper
Hovedmeny

Post a Comment On: Ken Shirriff's blog

"Yamaha DX7 reverse-engineering, part III: Inside the log-sine ROM"

6 Comments -

1 – 6 of 6
Blogger stan423321 said...

Huh, so deltas need to be 12-bit for 14-bit base values this time? That's... quite a scale change compared to exp function circuit, alright...

In an early paragraph, you seem to mention those very same exp ROM 4 bit wide deltas though. Typo, I guess?

In regards to the log-sin function. You seem to be using a small logarithm base, which extends to footnote mentioning the function being decreasing; when I asked my computer for a log-sin plot to see why those deltas are what they are, it was very much increasing over first quarter of the circle... though in negative domain. I guess your convention is not wrong, but it's something to watch out for when most people seem to default to 2, e, or 10 for logarithm bases, which are all above one.

Thanks for the read. I hope I do not come off as too whiney.

December 1, 2021 at 9:57 AM

Blogger Ken Shirriff said...

Hi Stan. Thanks for your comments. Yes, the deltas for log-sin are much larger than for 2^x (which is close to linear over 0-1 interval), because log-sin is asymptotically steep near 0. You are correct that "4-bit deltas" is an error, a bad cut-and-paste from my exponential article.

The logarithm base is base 2, which works out well in binary. Since sine is <=1, the logs are all negative. I flipped the sign to positive, which is how (I think) they are stored in the ROM, but I didn't make the sign change clear.

December 1, 2021 at 1:44 PM

Blogger KeyJ said...

Are you sure that it's really just 30 bits of deltas? I count 32 (12+11+9).

December 2, 2021 at 3:44 AM

Blogger Ken Shirriff said...

KeyJ: It depends what you're counting. For the 12-bit delta and 11-bit delta, the second bit is always 0, so it's not stored in the ROM.

December 2, 2021 at 1:31 PM

Blogger KeyJ said...

Nevermind. My code did in fact find and use those two all-0 colums (and I end up with the correct ROM size of 5344 bits as a result), it's just that it displayed the position of the highest bit instead of the number of actually used bits.

December 3, 2021 at 12:11 AM

Blogger Ken Shirriff said...

KeyJ: It seems like you're working on something interesting. If you want to get in touch by email, my contact info is in the sidebar.

December 3, 2021 at 9:11 AM

You can use some HTML tags, such as <b>, <i>, <a>

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot