Skip to content

Handling custom VGA video modes #1482

@dbalsom

Description

@dbalsom

First of all, thank you for the excellent simulator. It has been an enormously helpful tool in IBM PC emulation research.

I'm currently recreating the IBM CGA card in Digital, using Verilog components for things like the Motorola MC6845.

Image

I needed to patch VGA.java to add timings for the CGA card. Initially I was going to request that these timings should be added to the existing timing table, but thinking about the whole galaxy of timings for home computers, there can be configurable porch sizes, hsync widths, and even vsync height can be modified using special CRTC tricks, so there would endless mode definitions to add.

I can see a few different options:

  • We could move all the video mode definitions to an external file the user can edit
  • We could keep the video mode definitions internal, but allow the user to add additional modes from an external file
  • We could add a UI to the VGA component to allow a specific custom timing to be entered

As an aside, is there a way to speed up the VGA component's sync time? Currently it seems to take 6 frames, and that takes a while as my simulation runs pretty slowly.

Thank you,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions