Graphics Options for a Homebrew Retro Console

PreviousCollected and collated video chips from early home computers and games, which were designed to create a nostalgic style for home-made.Home computersGet ready. Over the years, some information has continued to be collected, and the focus has shifted from "What's the Chip in History" to "What's the practical route of doing it today and what's the graphic part?" This is a follow-up to document these programmes.

First, think first: what the PPU is doing.

Here.Red and white machine.The PPU (2C02), for example, can be broken down into several pieces:

Modules Duties
Time-Sequence Generator 341 o'clock x 262 scanned lines (NTSC), 21.477 MHz clocks, producing HBlank/VBlank
Background Renderer Take a name table property table pattern table every 8 cycles, move the register to line out of pixels
Pixie Renderer 64 OAM entries per scanner pre-scan, up to 8 items, each maintaining a place transfer register
Pixels Synth Background / Pixie Priority Arbitration, Check 32-byte palette RAM
CPU Interface 8 senders (%)\(2000-\)2007), double byte locking, OAM DMA

Understanding this division of responsibilities, each of the next routes can be seen as "the means by which these pieces can be re-established".

A Famiclane masterboard: the two UMC chips in the middle are imitated CPU (UA6527P) and PPU (UA6538)

The functions of the PPU were so simple that they could be imitated as a whole: UA6527P (similar to 2A03 CPU) and UA6538 (similar to 2C02 PPU) were the standard chip group of the Big Red and White Compatible for the year, with a master plate of the Compatible, two UMC chips in the middle and two Hyundai RAMs on the side. The imitations were later further condensed into a single cow-on-a-Chip. This is a side-scenario that it is entirely realistic to use today's FPGA to re-examine PPU. (Figure: Wikimedia Commons, Socram88888, CC BY 3.0)

II. Route I: FPGA Recapturing PPU

This is currently the most mainstream route. MiSTerThe NES, SNES, Genesis cores on the project are essentially rewrited with Verilog/VHDL.

FPGA is used to achieve the key elements of the NES PPU:

Common pits: periodic timing of elves in their lives, chromosomal mirrors (in the form of occult images)\(3F10镜像到\)3F00, read $2007 back buffer during non-VBlank. The NES game is very sensitive to PPU's cyclical behaviour, and rough realization can brighten the screen but run the wrong game.

The ceiling of the FPGA route is much more than a recultivated chip, followed by section IX, which is devoted to a project to modernize the FPGA GPU.

iii. Route II: The answer to the dispersed logic + Blitter — GameTank

GameTankIt offers a completely different perspective: No PPU, no frame buffer and Blitter..

GameTank's mainframe is strapped to the tape, and it's on the CRT through RCA.

Item Configure
CPU W65C02S @ 3.5MHz
Frame Buffer 128 x 128, 1 byte per pixel, double buffer, one 32KB double-crossing SRAM
Graphical acceleration Blitter Hardware Copy Engine 3.5MB/s, Support for Transparent Color and Flip
Graphical Source 512 KB RAM Storage of Sprite/Tile Data
Output NTSC Composite Video, Hard Encoding 200 Colour Palette
Audio Second W65C02S@14MHz + 4KB RAM + DAC
Logical realization All 74 series of penetrating chips, no FPGA, no MMU

Its design philosophy is that a resolution is sufficient hours (128 x 128 only 16KB), and that the cost of completely redrawing the background per frame is low, and that a high-speed Blitter can replace the traditional PPU's background Tile decodor and elf assessor. Hardware has been significantly simplified at the cost of CPU actively organizing the re-draw, and it is not the case that the repository is not configured as NES.

This structure is closer to Atari Lynx than to NES. The advantage is that all the chips can be bought in a new tonware at Digi-Key and Mouser, and the whole machine can be sold out by hand.

Route III: Modern "PPU-Free" - Bridgetek EVE

The only trade chip currently available at the interface is the EVE series (Embeded Vidio Engineering) of Bridgetek (FTDI) if it is to be "sold with a much better PPU-like" option.

Model Intergenerational Resolution Remarks
FT810-FT813 EVE2 800×600 It's for sale.
BT815/BT816 EVE3 800×600 Add the ATTC texture compression, external NOR Flash
BT817/BT818 EVE4 1280×800 There's an AEC-Q100 class.

EVE is... Show list (Display List) structure: MPU sends an advanced command through SPI ( "Pixel 3 in X, Y"), which automatically completes the rendering, synthesis, time sequence generation and output within the chip, with no pixels at all. It is conceptually similar to the "CPU write OAM, PPU automatically render" height, but it is several dozen times larger, with audio PWM output and touch screen control. Note some practical constraints: The list has an upper limit of 2048 items (FT81x), the nudity table is a poor manual welding for the QFP, the general buys screen-based modules (Riverdi, New Haven, etc., $30-80) and the EVE is a 3.3V device, and the 6502 system for 5V requires a flat conversion.

This model of "weak master + SPI + Special Graphics Engine" is not a paper-based idea. It has a quantitative precedent: James Bowman.Gameduino 2/3It's FT800/FT810 with Arduino (ATmega 328@16MHz), Kickstarter with three generations of production, with the same weight as W65C02S. Bowman wrote a book.《The Gameduino 2: Tutorial, Reference and Cookbook》, the system talks about the display list programming of the EVE, and the author network has a free PDF.

Gameduino 2: FT800 displays an extension stacked on Arduino, running example program

The Gameduino 2: Textual, Reference and Cookbook cover. Four Gamedino screens spell book names.

To be fair, the circles of 6502 and EVE are not currently at cross point: the ecology of EVE is almost entirely on the modern MMUs, the Arduino/ESP32/STM32, and I have not found a public completion of the project of 6502+EVE. However, the simulation of the SPI with 65C22 VIA software on this side of 6502 is a standard operation for homemade communities, with the two half being mature and no theoretical barriers.

The only threshold for using it as a game machine with W65C02S is that 6502 has no SPI controller and three solutions:

  1. 65C22 VIA software simulating SPI: about 50-200 Kbps, prototype available, list of displays of just a few hundred bytes barely enough 30fps
  2. A cheap CPCLD is a SPI bridge map to I/O space of 652:1-4 Mbps, CPU is almost zero. Recommendations
  3. W65C816S or FPGA bus bridge QSPI: Over-design

A typical retrospective game scene (background + 20 elves + UI text) shows a list of about 500 bytes per frame, with no pressure on the SPI to 1 mbps or more. This route is much less difficult to develop than the FPGA and the discrete logic — although 652+EVE is not far from being stepped on, there is a structure model for the base of the Gameduino three-generation product, which I think is the most worthwhile combination of new humans.

VDP for Dismantling

If you insist on using "Jan VDP", you can only remove the machine. Comprehensive capabilities, documentation and accessibility, in order of order:

Chip. For Evaluation
Yamaha V9958 MSX2+/Turbo R Preferred. One of the strongest VDPs in the 8-bit era, 512 x 424, hardware rolling, 19268 colour YJK mode, and no-lined elf scintillation limit; Official data manual available
Yamaha V9938 MSX2 The old generation of V9958, more and cheaper, with no YJK and no horizontal rolling
TI TMS9918A TI-99/4A、ColecoVision、MSX1 VDP Nasal Grandfather, but almost all indicators are weaker than NES PPU (16 colours, 4 elves per line) and are only suitable for teaching
Sega 315-5313 MD The performance is high, but without official documents, QFP is hard to weld, expect 68,000 class bus time series, and DIY is high risk

Yamaha V9938 chip ( ⁇ 1984, ASCII/MSX silk prints)

Yamaha V9958 chip ( ⁇ 1988)

V9958/V9938 is a standard parallel bus outside, with a direct reading and writing repository of 6502, which does not require a SPI bridge. Note that they do not form a visible presence and require external access to DRAM, such as 44256/41464. It was recommended that the demolitions still welded on the subboards be better disposed of than the nudity. There's also a physical precedent for the feasibility of this route: someone gave C64 a complete picture.V9958 card(Open source hardware, plug-in chutes directly) The RC 2014 community also has a V99x8 video module package available.

Why don't you touch the street chip?

The street is going another way: No generic VDP, all customized ASC.

Customization of ASIC does not have a data manual, complex time series, and a lot of tips, and it has not yet been bought in replacements, and the individual DDY does not touch them.

VII. Fork in the way: the 2D elves in a four-sided shape - 3D of Sacra Saturn.

"With 2-D hardware, 3-D."Saturn.It is the most deserving case. It's VDP1 No triangle at all. It's called "Distorted Sprite" -- it turns a 2D genie from a texture map into a quadrilateral of any four-point frame. All the polygons in Saturn's game are these four-sided elves. The geometry component (change, light, sorting) is entirely based on the dual SH-2 software, and the VDP1 fills only.

A line frame model for the role of VR Warrior Remix, which clearly shows that the model is made from a quadrilateral.

The final retrospect of the same scene: a normal 3D image with a texture on the quadrilateral.

The above two maps are the same example (VR fighter Remix, 1995): after removing the texture, the role model is fully spelled out by a quadrilateral; The textures of the VDP1 are distorted into each quadrilateral, together with the 2D background layer drawn by VDP2, which is the final image below. (Screenshots from Saturn structure analysis at copetti.org)

This structure brings a chain reaction:

Ironically, the Model 1-2 machine used real polygonal hardware, and when it arrived, it returned to the elves — one of the structural reasons why Saturn's 3D performance was lost to PS1.

And these are the same "2D hardware and 3D" lines:

Platform Methodologies Remarks
3DO The CEL engine draws a quadrilateral Cel, which also has no triangle, no Z buffer. The closest to Saturn.
Sega 32X Frame Buffer + Double SH-2 Rendering Hardware only shows up. 3D is on CPU.
Super Scaler. Hardware scaling/rotating large numbers of elf simulation depths Harry Space, Out Run, false 3D.
SNES Mode 7 Single-layer background imitation transformation (rotation zoom) "F-Zero" "Marrio Racer" ground
GBA emulation layer The orthodox of Mode 7 with a matrix for each scanner See sect. X below. ]
Neo Geo The whole elves have a background. See previous section, 3D, but same philosophy.

Their common denominator is that: Hardware provides only 2D original language (genie, background level) and 3D is supported by software or player brain. The fork was terminated after the "GTE geometry+GPU painting triangle" combination of PS1 -- once the genuine polygonal optic optic rims were cheap enough to access the home machine, the deforming elves lost their raison d'être.

VIII. CPU COMPONENT: 6502, 68,000 and SuperH

The graphics are set, and there are some interesting clues to the choice of CPU.

**652 and 68,000 are two extremes of the same division. ** Chuck Peddle, the father of 6502, was the core member of the Motoola 6800 project, which ran away from MOS, claiming that the low price route had failed, and made a cheap order of 6502 with fewer transistors. Motoola's response to the high-end market: 16 32-bit repositories, a set of active commands, called the charade "CISC most like RISC" - it is indeed CISC (long command, microcode, memory-RAM operation). They rarely competed, but often partnered in the same machine: Comodore 64 used 6510 and Amiga used 68,000 with the 652 series for keyboard control.

SuperH is of pure Japanese origin. ** The largest feature of the 32 RISSC self-study in Japan in 1992 was the high code density of 16 fixed-duration instructions. SH-2(Saturn.Double core 28.6 MHz, SH-4()Dreamcast 200 MHz, 128 FPU 1.4 GFLOPS, two degrees to the top of the game; Following the failure of the 64 attempts of the SH-5, Risa was the main vehicle, the MMU, and has been reborn in recent years in the form of an open source soft core, J-Core. So SEGA let CPU do T&L and PowerVR2 do Tile-Rabling -- this confirms that: Geometry (T&L) can be handed over to CPU, but pixel filling must have a special hardware**. So did Saturn and DC, and so did Vodoo, and so did the GBA imitation.

**68k is alive today, but is a legacy. ** Desktop line 68020/68060 was lost to PowerPC in the mid-1990s; The embedded line survived: Dragon Ball in Palm Pilot and ColdFire (new customers are largely unrecommended) who are still supplying NXP. More active are the "modern 68k" on the FPGA soft core (TG68, FX68K, Amiga/Genesis at Mister) and the "Vampire accelerator card" at Apollo Team - the "modern 68k" with AMX SIMD extension, which is the parallel world answer if Motorola does not give up."

ix. Modern FPGA GPU logo: FuryGpu

The case of the ceiling on the FPGA route is FuryGpuOne person made an independent PCI card from Zilinx Zynq UltraScale+ (Kria SoM) to run Quake for nearly four years.

FuryGpu entity graphic card, center of Kria Som with fan, gold finger interface PCIe, with HDMI and DP out of the block.

Item Specifications
Structure Fixed function Tile-Based grid, no programmable colour handler
Clock 480MHz
Raster 4 parallel Rasterizer, 2x2 Quad
Texture One texture unit per Rasterizer, dual linear, Mipmap; 4x4 connects 512KB texture cache
Host interface PCIe + CustomWindows WDDM kernel driver
API Private FuryGL, visible command buffer/queue submission, Vulkan shell + stationary core

A few points worth recording:

Diamond Monster 3D, or 3dfx Vodoo Graphics (Voodoo 1) accelerator, with a sign VGA line above the left

Image of FuryGpu running Quake with frame time 16.54 ms (approximately 60fps) in the lower left corner and debug counter in the upper right corner of the hardware

X. Another reference system: integration

The handheld gave an example of "no independent VDP but more functional". GBADirectly into SOC, sharing memory bus with ARM7: six display modes (Mode 0-2 is Tile mode, up to 4 layers of background and 2 layers of replicating transformation); Mode 3-5 is a frame-buffering bitmap model, 128 hardware elves, Alpha mix/light increase/window cut-off effects, plus HBlank DMA scan-line reposer, which makes a Mode 7-style pseudo-3D. Pixel synthesis remains a pure hardware circuit, and DMA is responsible only for handling and upgrading the repository.

The PC side is "2D acceleration without stop, but it's swallowed up": DirectDraw hardware Blitter (BitBLT, colour key control, page flip) was absorbed after 2000 by the Unified Colour Transceiver (UCC) structure -- today's 2D interface is all "two triangles" to be completed with 3D line zero-cost, folded on DWM desktop synthesis, independent video decoding engine, and far-flung Copy Engineering. The 2D hardware capacity that was independent in that year was not lost, but was hidden in invisible places.

XI. Summary: How to choose

Route Hardware Complexity Development difficulty Love and love. Who's it for?
FPGA Recapturing PPU Medium High (cycle order) ★★★★★ Trying to recreate an old machine.
Separate Logic + Blitter (GameTank) High (tens of 74 chips) Medium ★★★★★ I want to weld it out.
W65C02S + Bridgetek EVE Low Low ★★★ I want to make a playable machine quickly.
6502 + Dismantling V9958 Medium Medium height (DRAM time series) ★★★★ Wants real VDP.
FPGA Self-Study GPU (FuryGpu) Low (Kria) Extreme (years) ★★★★★ Trying to challenge the personal project ceiling.