Is S-RAM the same as W-RAM?

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

Moderators: B00daW, Moderators

Tormenter
Posts: 306
Joined: Sat Jun 03, 2006 9:17 pm

Is S-RAM the same as W-RAM?

Post by Tormenter »

Is S-RAM the same as W-RAM?

Thank Ye!
User avatar
Memblers
Site Admin
Posts: 3902
Joined: Mon Sep 20, 2004 6:04 am
Location: Indianapolis
Contact:

Post by Memblers »

Yes. SRAM = Static RAM, WRAM = Work RAM (which tends to be SRAM).

Also, iNES used to not have a way to specify a battery, so sometimes you might see SRAM w/o a battery referred to as WRAM.
Tormenter
Posts: 306
Joined: Sat Jun 03, 2006 9:17 pm

Post by Tormenter »

So on the TNROM conversion, I could use the SRAM instead of WRAM to put into the CHR? Thanks!
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

SRAM, or static random access memory, is a volatile memory technology that uses a flip-flop (four to six transistors) for each bit. DRAM, or dynamic access memory, is a cheaper volatile memory technology . Most DRAM chips need a separate memory controller, but DRAM is also available packaged as PSRAM, or pseudo-static RAM, with a built-in controller that allows use in circuits that expect SRAM.

WRAM is work RAM. This is SRAM or PSRAM mapped into CPU space at $6000-$7FFF. Most boards with WRAM have 8 KiB of WRAM; larger sizes are less common, mostly in a few S*ROM and E*ROM boards.

CHR RAM is SRAM or PSRAM mapped into PPU space at $0000-$1FFF. Most boards with CHR RAM have 8 KiB of CHR RAM; larger sizes are far less common, only in CPROM boards.

No Nintendo board allows a single 8 KiB RAM chip to serve as WRAM and CHR RAM at the same time. But if you have two identical 8 KiB RAM chips, and the board has a pin for CHR /WE (write enable), you can do a bit of rewiring and replace the board's CHR ROM chip with a RAM chip.
User avatar
Bregalad
Posts: 8036
Joined: Fri Nov 12, 2004 2:49 pm
Location: Caen, France

Post by Bregalad »

SRAM rules !! DRAM shuuucks !!

[turning off supid mode]

WRAM is often referd by Nintendo themselves on their boards, while SRAM is mostly used by romhackers and homebrewers. SRAM may also refer more to the chip itself, while WRAM may refer to it's software counterpart (but no clear distinction is made here). (eg. SOROM has 16k of WRAM, with two 8kb SRAM chips).
tepples wrote: No Nintendo board allows a single 8 KiB RAM chip to serve as WRAM and CHR RAM at the same time. But if you have two identical 8 KiB RAM chips, and the board has a pin for CHR /WE (write enable), you can do a bit of rewiring and replace the board's CHR ROM chip with a RAM chip.
That'd rock so much, but probably need a dual-port SRAM.
(four to six transistors)
Hey, this just make me noting something. A 6264 SRAM chip as used in most NES carts have 64*1024*6 transistors, wich is 393 thousands of transistors. This is really impressive, especially considering there is probably almost as much for adress-row decoding. We're almost on the million of transistors in a single chip, so a 8kB SRAM probably have almost as much transistors as microcontrollers. (that's actually why DRAM has been invented, because other than the need of less transistors, it really have no other advantages).
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

Bregalad wrote:
tepples wrote:No Nintendo board allows a single 8 KiB RAM chip to serve as WRAM and CHR RAM at the same time.
That'd rock so much, but probably need a dual-port SRAM.
That, or a dual-port mapper that wraps a single-port RAM by queueing writes and executing them when, say, the PPU is reading the nametable. We've discussed this before.
Tormenter
Posts: 306
Joined: Sat Jun 03, 2006 9:17 pm

Post by Tormenter »

Tormenter wrote:So on the TNROM conversion, I could use the SRAM instead of WRAM to put into the CHR? Thanks!
No idea what you are talking about =) But will this quoted statment work? Thank Ya!
User avatar
kyuusaku
Posts: 1665
Joined: Mon Sep 27, 2004 2:13 pm

Post by kyuusaku »

WRAM is also used to denote internal work RAM (even officially by Nintendo) which in the SNES' case is DRAM.
dvdmth
Posts: 354
Joined: Wed Mar 22, 2006 8:00 am

Post by dvdmth »

The TNROM board, as I understand it, has two 8KB SRAM chips. One SRAM chip is on the PRG bus and serves as general-purpose RAM (or Work RAM, to use Nintendo's lingo). The other SRAM chip is on the CHR bus and serves as character RAM (CHR-RAM, which holds the graphics for the game). The first SRAM chip (the one on the PRG bus) can have battery backup, while the second chip does not have support for a battery.

In short, yes, you will use an SRAM chip to replace the CHR memory in a TNROM mod.
"Last version was better," says Floyd. "More bugs. Bugs make game fun."
User avatar
Bregalad
Posts: 8036
Joined: Fri Nov 12, 2004 2:49 pm
Location: Caen, France

Post by Bregalad »

kyuusaku wrote:WRAM is also used to denote internal work RAM (even officially by Nintendo) which in the SNES' case is DRAM.
WHAT ? This is horrible ! My beloved SNES has a horrible DRAM chip inside it ? This just isn't possible !

As for the TNROM board : http://www.54.org/sage/condev/Famicom_C ... 200030.JPG (pic is not mine)
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

Bregalad wrote:WHAT ? This is horrible ! My beloved SNES has a horrible DRAM chip inside it ? This just isn't possible !
Worse, OAM and palette RAM inside the NES PPU are believed to be embedded DRAM.
User avatar
Bregalad
Posts: 8036
Joined: Fri Nov 12, 2004 2:49 pm
Location: Caen, France

Post by Bregalad »

Yeah, but any decent NES software will keep them in safe 2k WRAM, and copy them to the PPU for DMA (sprites) or manually (palette) regulary.

However, if the whole system RAM on the SNES is DRAM, that means the only "safe" RAM is the one in the cartridge. That'd be horrible. Any SNES game actually have 0.001% to randomly crash when running.
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

Bregalad wrote:However, if the whole system RAM on the SNES is DRAM, that means the only "safe" RAM is the one in the cartridge. That'd be horrible. Any SNES game actually have 0.001% to randomly crash when running.
You typed your comment into what I'm 99 percent sure is a PC with DRAM. Like the PC, the Super NES is stable because it takes some time out of each scanline to refresh DRAM.
User avatar
Bregalad
Posts: 8036
Joined: Fri Nov 12, 2004 2:49 pm
Location: Caen, France

Post by Bregalad »

Yeah, I know. PCs are a particular case, because having 512MB of SRAM would take an entiere room to store the chip and the adress decoders, and then the access would be too slow for a PC to make. (however, most PCs have still a Bios "CMOS RAM", wich is often a SRAM).
Hower, instead of wasting time and current to "refresh" DRAM, we could wase some transistors to have proper SRAM implemeted. Especially for the SNES, because it has 128k of system RAM and 128k SRAM chips are pretty common (at least today). Even if they were expensive when the SNES was released, the console sold so well in so great quantities that it wouldn't be any great deal for Nintendo to have SRAM in it.

EDIT : Thanks god, I found on the net that the SPC700 has his own 2 chips of external 32k SRAM, making 64k SRAM overall. At least this one is stable.
Tormenter
Posts: 306
Joined: Sat Jun 03, 2006 9:17 pm

Post by Tormenter »

Can I use a SRAM chip for the TNROM conversion instead of using a WRAM chip? Will this work the same???
Post Reply