Everdrive N8 - VRC7 Mapper with FM Sound (now full YM2413!)

Discuss hardware-related topics, such as development cartridges, CopyNES, PowerPak, EPROMs, or whatever.

Moderators: B00daW, Moderators

6502freak
Posts: 92
Joined: Sun Dec 07, 2008 1:11 pm

Everdrive N8 - VRC7 Mapper with FM Sound (now full YM2413!)

Post by 6502freak » Fri Jun 16, 2017 4:41 am

Hello guys,

I just finished a new release of my VRC7 mapper implementation for the Everdrive N8.

After some long hiatus, I finally managed to get the VRC7 /FM sound core running reasonably well! :beer: :D

I have uploaded the release to the following location:

http://s000.tinyupload.com/?file_id=143 ... 2133932052

Enjoy, and happy hacking (since the core can of course be used with homebrew roms aswell)!

PS.: (in case you wonder) For this release, I'm using my name handle from the Everdrive support forum (Necronomfive).
Last edited by 6502freak on Sun Aug 06, 2017 2:40 pm, edited 2 times in total.

User avatar
Eugene.S
Posts: 295
Joined: Sat Apr 18, 2009 4:36 am
Location: Russia (UTC+3)
Contact:

Re: Everdrive N8 - VRC7 Mapper with FM Sound

Post by Eugene.S » Fri Jun 16, 2017 4:48 am

Nice to hear this. Do you want to ask krikzz for add it to official mappers package?

Great Hierophant
Posts: 763
Joined: Tue Nov 23, 2004 9:35 pm

Re: Everdrive N8 - VRC7 Mapper with FM Sound

Post by Great Hierophant » Fri Jun 16, 2017 9:53 am

Video from an AV Famicom : https://www.youtube.com/watch?v=X3tUocZ ... e=youtu.be

Do you know if the real cart is as quiet when it comes to the expansion audio vs the internal audio? On an original Famicom, the mapper's expansion audio from the EverDrive is very quiet in relation to the internal audio.

User avatar
rainwarrior
Posts: 7801
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Everdrive N8 - VRC7 Mapper with FM Sound

Post by rainwarrior » Fri Jun 16, 2017 10:35 am

This is cool!
Great Hierophant wrote:Do you know if the real cart is as quiet when it comes to the expansion audio vs the internal audio? On an original Famicom, the mapper's expansion audio from the EverDrive is very quiet in relation to the internal audio.
The VRC7 board attenuates the 2A03 audio quite a bit. In that video it's balanced way too loud relatively, though probably you're going to have trouble getting loud enough output from the Everdrive to do it right. There's some reference recordings here:
viewtopic.php?t=8639

6502freak
Posts: 92
Joined: Sun Dec 07, 2008 1:11 pm

Re: Everdrive N8 - VRC7 Mapper with FM Sound

Post by 6502freak » Fri Jun 16, 2017 12:40 pm

Hi,
rainwarrior wrote: The VRC7 board attenuates the 2A03 audio quite a bit. In that video it's balanced way too loud relatively, though probably you're going to have trouble getting loud enough output from the Everdrive to do it right. There's some reference recordings here:
viewtopic.php?t=8639
yeah, I know.

The problem is that I can only adjust the volume in the digital domain, and in this regard, I'm already utilizing the full 13-bit range of my Delta-Sigma converter.

Meaning, if it needs to be louder, I have to scale the volume beyond the range of my converter, which means clipping the output when too many channels are played. I'm honestly not so fond of this idea.

Maybe I can find some trick by playing with the I/O drive strength and using a combination of push-pulling and tristating the audio pin.

User avatar
rainwarrior
Posts: 7801
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Everdrive N8 - VRC7 Mapper with FM Sound

Post by rainwarrior » Fri Jun 16, 2017 1:09 pm

Yeah, part of the problem is the VRC7 itself has a HUGE dynamic range from its logarithmic volume function.
6502freak wrote:I have to scale the volume beyond the range of my converter, which means clipping the output when too many channels are played. I'm honestly not so fond of this idea.
I have not yet done testing on this (VRC7 is the last big reverse-engineering challenge in my plans for NSFPlay, still pending) but I've had reports that if you play it too loud it does end up distorting.

Even just clamping the max channel volume at ~11 might claim back a bit of headroom that Lagrange Point isn't using much.

Great Hierophant
Posts: 763
Joined: Tue Nov 23, 2004 9:35 pm

Re: Everdrive N8 - VRC7 Mapper with FM Sound

Post by Great Hierophant » Fri Jun 16, 2017 7:28 pm

This isn't the first complaint I have heard of the EverDrive N8's quiet audio. Perhaps an amplifier mod, similar to the one used for earlier versions of the SD2SNES, would alleviate quiet expansion audio issues.

User avatar
byemu
Posts: 295
Joined: Mon Sep 05, 2011 5:56 pm
Contact:

Re: Everdrive N8 - VRC7 Mapper with FM Sound

Post by byemu » Sat Jun 17, 2017 2:46 am

Very Well.
BTW, Is it possible to simulate VRC7 FC Sound with a altera or xilinx cpld?

Great Hierophant
Posts: 763
Joined: Tue Nov 23, 2004 9:35 pm

Re: Everdrive N8 - VRC7 Mapper with FM Sound

Post by Great Hierophant » Sat Jun 17, 2017 9:22 am

byemu wrote:Very Well.
BTW, Is it possible to simulate VRC7 FC Sound with a altera or xilinx cpld?
The EverDrive N8 uses an Altera Cyclone II FPGA, but FPGAs are much more capable devices than CPLDs.

lidnariq
Posts: 9290
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: Everdrive N8 - VRC7 Mapper with FM Sound

Post by lidnariq » Sat Jun 17, 2017 1:38 pm

Can you even fit something as simple as a sn76489 in one of the affordable CPLDs?

tepples
Posts: 21941
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Everdrive N8 - VRC7 Mapper with FM Sound

Post by tepples » Sat Jun 17, 2017 2:06 pm

Old-school Xilinx CPLDs are sized in macrocells. Each macrocell corresponds roughly to one bit of state or one multiplexed output pin. Resources in a Lattice CPLD aren't quite so simple to estimate from the size of state, but here goes nothing.

A pulse channel starts at about 25 bits:

Period reload value (10 bits)
Period down counter (10 bits)
50% duty generator (1 bit)
Volume (4 bits)

A noise channel starts at 28 bits:

Noise period prescale (3 bits)
Noise period reload value (2 bits)
Noise period down counter (3 bits)
Noise LFSR generator (15 bits)
Noise waveform select (1 bit)
Volume (4 bits)

And some shared bookkeeping overhead:

Shared prescaler (8 bits)
Pulse density modulation adder (4 bits) - one channel is added every cycle, and this adder's carry is the output

Great Hierophant
Posts: 763
Joined: Tue Nov 23, 2004 9:35 pm

Re: Everdrive N8 - VRC7 Mapper with FM Sound

Post by Great Hierophant » Sat Jun 17, 2017 2:20 pm

An Altera Max II EMP240 has 240 Logic Elements and will run you $7.50 on Mouser for the lowest-end chip in the family. Using Tepples' example, which has 115 bits, you should be able to fit everything onto the cheapest chip. This is using Altera's estimate of 240LEs = 128-240 MCs, avg. 192MCs. Could you fit the slightly more advanced capabilities of an AY-3-891x sound core?

lidnariq
Posts: 9290
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: Everdrive N8 - VRC7 Mapper with FM Sound

Post by lidnariq » Sat Jun 17, 2017 2:33 pm

Great Hierophant wrote:An Altera Max II EMP240 has 240 Logic Elements and will run you $7.50 on Mouser for the lowest-end chip in the family
Why that particular part? It seems comparatively expensive and yet is still only 3V...

InfinitR
Posts: 7
Joined: Sat Jun 17, 2017 6:19 pm

Re: Everdrive N8 - VRC7 Mapper with FM Sound

Post by InfinitR » Sat Jun 17, 2017 6:22 pm

Hello,

I stumbled on this while setting up an Everdrive N8.

Just wondering what would happen if you threw a guitar compression pedal into the audio chain.

Thanks for the development.

6502freak
Posts: 92
Joined: Sun Dec 07, 2008 1:11 pm

Re: Everdrive N8 - VRC7 Mapper with FM Sound

Post by 6502freak » Sun Jun 18, 2017 1:51 am

Great Hierophant wrote:
byemu wrote:Very Well.
BTW, Is it possible to simulate VRC7 FC Sound with a altera or xilinx cpld?
The EverDrive N8 uses an Altera Cyclone II FPGA, but FPGAs are much more capable devices than CPLDs.
My core is currently using 2910 LEs, which is beyond the capacity of any known "real" CPLD. Especially if you target the "desirable" 5V tolerant ones.

Btw, (in case you wonder) the reason why I am not posting at the Everdrive forum aswell is the failure to get my account reactivated (sent numerous password reset requests, but no response). If somebody would kick the admin, I might actually be able to answer to any kind of bug reports...

In addition of course to nesdev here. :)

Thanks so far for the positive responses!

Post Reply