iNes mapper 163 vhdl code for XC9536???

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

Moderator: Moderators

User avatar
Ben Boldt
Posts: 1149
Joined: Tue Mar 22, 2016 8:27 pm
Location: Minnesota, USA

Re: iNes mapper 163 vhdl code for XC9536???

Post by Ben Boldt »

lidnariq wrote: Sun Oct 04, 2020 11:32 am
Ben Boldt wrote: Sun Oct 04, 2020 10:24 am Can it support Namco-163 audio expansion?
Mapper 163 ≠ Namco 163. Unfortunately.
HAH silly me to think that, thanks for the correction.
User avatar
aquasnake
Posts: 515
Joined: Fri Sep 13, 2019 11:22 pm

Re: iNes mapper 163 vhdl code for XC9536???

Post by aquasnake »

here is my compiling test:

1. no supporting auto 4KB(chr_a12) cram bank-switching, no supporting $5100/$5500 read-back detection, no supporting sub-mappers(#162, #558)
useless.png
useless.png (1.75 KiB) Viewed 4038 times
this is just for testing, would be impracticabile. the title screen of FF7 is broken.

2. based on 1, adding auto 4KB(chr_a12) cram bank-switching
generic.png
generic.png (1.79 KiB) Viewed 4038 times
most of mapper163 roms work fine, a simplified version for a single cart

3. based on 2, adding $5100/$5500 read-back detection
full.png
full.png (1.77 KiB) Viewed 4038 times
a full version for a single cart

4. based on 3, adding the multi-cart loader and menu selecting, supporting sub-mappers(#162, #558)
multi-cart.png
multi-cart.png (1.82 KiB) Viewed 4038 times
this version is for universal multi-cart or flash cart
mightydidz
Posts: 99
Joined: Wed Jan 24, 2018 12:04 pm

Re: iNes mapper 163 vhdl code for XC9536???

Post by mightydidz »

So it needs at least 50 macrocell?
Isn't a XC9536 only have 36 macrocells?

Is there an available VHDL or Verilog code to start working with?
User avatar
getafixx
Posts: 373
Joined: Tue Dec 04, 2012 3:28 pm
Location: Canada

Re: iNes mapper 163 vhdl code for XC9536???

Post by getafixx »

mightydidz wrote: Mon Oct 05, 2020 9:34 am Isn't a XC9536 only have 36 macrocells?
The XC9572 is pin-compatible with a XC9536 of the same package. Both of those are obsolete products, though, so you may want to check out the XL variant. It's a 3V part so you'll need a voltage regulator, but they have 5V tolerant I/O so level shifting isn't needed.

Honestly though, I wouldn't worry about what chip the original board used. Once you write the HDL for it, you can port it to whatever CPLD/FPGA you want.
mightydidz
Posts: 99
Joined: Wed Jan 24, 2018 12:04 pm

Re: iNes mapper 163 vhdl code for XC9536???

Post by mightydidz »

getafixx wrote: Mon Oct 05, 2020 10:30 am
mightydidz wrote: Mon Oct 05, 2020 9:34 am Isn't a XC9536 only have 36 macrocells?
Honestly though, I wouldn't worry about what chip the original board used. Once you write the HDL for it, you can port it to whatever CPLD/FPGA you want.
That's exactly the point of my post, I was wondering if a code already exist so I may port it to another chip ;)
Thanks
User avatar
aquasnake
Posts: 515
Joined: Fri Sep 13, 2019 11:22 pm

Re: iNes mapper 163 vhdl code for XC9536???

Post by aquasnake »

aquasnake wrote: Thu Oct 01, 2020 6:25 pm
mightydidz wrote: Thu Oct 01, 2020 6:55 am Isnt it a XC9536 on this pcb?
https://fr.aliexpress.com/item/40006395 ... 6c373VSN7z

How many macrocell a mapper163 requires?
It can probably be ported to another CPLD?
according to this picture, the cpld has 64 pins, i guess it's a 5M160.

i compared with XC9536/72XL, from the VCC and GND pin assignments, it is a XC9536/72.
User avatar
byemu
Posts: 297
Joined: Mon Sep 05, 2011 5:56 pm
Contact:

Re: iNes mapper 163 vhdl code for XC9536???

Post by byemu »

Full support mapper163 (FF7 or Pocket mon) need more than 36 cells.
But you can hack the rom to fit the xc9536xl.
mightydidz
Posts: 99
Joined: Wed Jan 24, 2018 12:04 pm

Re: iNes mapper 163 vhdl code for XC9536???

Post by mightydidz »

Anyone knows how I can extract the code from the cpld using urjtag?
User avatar
TmEE
Posts: 960
Joined: Wed Feb 13, 2008 9:10 am
Location: Norway (50 and 60Hz compatible :P)
Contact:

Re: iNes mapper 163 vhdl code for XC9536???

Post by TmEE »

That only works if protection is not enabled. If it is enabled you won't be able to get a usable readback of the contents. You do the readback with same tools as you do the programming with.
mightydidz
Posts: 99
Joined: Wed Jan 24, 2018 12:04 pm

Re: iNes mapper 163 vhdl code for XC9536???

Post by mightydidz »

It there a way to know if protection is enabled?
Is there a command with urjtag to check protection bit?
User avatar
Ben Boldt
Posts: 1149
Joined: Tue Mar 22, 2016 8:27 pm
Location: Minnesota, USA

Re: iNes mapper 163 vhdl code for XC9536???

Post by Ben Boldt »

Can you read a known-unprotected CPLD? If you can do that then just try the exact same thing with this one.

Why not just start from scratch? Then it’s actually yours. It doesn’t seem like a very complicated mapper.
User avatar
krzysiobal
Posts: 1037
Joined: Sun Jun 12, 2011 12:06 pm
Location: Poland
Contact:

Re: iNes mapper 163 vhdl code for XC9536???

Post by krzysiobal »

EPM3032 (which is Altera's XC9536 equivalent) returns FFs when read back with protected bit set.
EPM240 returns 00s (only configuration part of the internal memory can be protected, while general purpose user memory UFM can not)
I have somewhere breadboard for XC9572 so I can test it (I dont have XC9536)
darleiv
Posts: 69
Joined: Wed Feb 23, 2022 10:55 pm

Re: iNes mapper 163 vhdl code for XC9536???

Post by darleiv »

study VHDL programming access our NES WIKI and make your own mappers.
darleiv
Posts: 69
Joined: Wed Feb 23, 2022 10:55 pm

Re: iNes mapper 163 vhdl code for XC9536???

Post by darleiv »

krzysiobal wrote: Fri Sep 02, 2022 6:21 am EPM3032 (which is Altera's XC9536 equivalent) returns FFs when read back with protected bit set.
EPM240 returns 00s (only configuration part of the internal memory can be protected, while general purpose user memory UFM can not)
I have somewhere breadboard for XC9572 so I can test it (I dont have XC9536)
know what we're missing. a programmer in arm cortex stm electronics create a source that runs everything on their cpu. for the poor, that's it and open source. general stop mimimi in 1990's thing and by all open. This is called preserving history. That's where capitalism ends. I know how to make almost all mapper 90% of the games. codes are open. but no one knows how to make it work but me
User avatar
aquasnake
Posts: 515
Joined: Fri Sep 13, 2019 11:22 pm

Re: iNes mapper 163 vhdl code for XC9536???

Post by aquasnake »

darleiv wrote: Tue Sep 20, 2022 10:43 am
krzysiobal wrote: Fri Sep 02, 2022 6:21 am EPM3032 (which is Altera's XC9536 equivalent) returns FFs when read back with protected bit set.
EPM240 returns 00s (only configuration part of the internal memory can be protected, while general purpose user memory UFM can not)
I have somewhere breadboard for XC9572 so I can test it (I dont have XC9536)
know what we're missing. a programmer in arm cortex stm electronics create a source that runs everything on their cpu. for the poor, that's it and open source. general stop mimimi in 1990's thing and by all open. This is called preserving history. That's where capitalism ends. I know how to make almost all mapper 90% of the games. codes are open. but no one knows how to make it work but me
There are few breakthrough technologies in the last 10 years. Musk's spaceX is not even as good as the technology 30 years ago. The probability of launch crash is too high. It's just a joke


I think the blowout of technological development occurred 10 years after the end of World War II and the same after the end of the Cold War (the collapse of the former Soviet Union) Only the conflict and integration of different models and different worlds can lead to technological progress. Under the same standard or basis, the development of technology is deliberately reduced due to the lack of competition and the maximization of capital for profit
Post Reply