Skip to content

verilog - load binary data for chip-8 emulator #197

Description

@jacoblister

8 bit workshop is awesome!

I'm working on a Chip-8 emulator to run on an FPGA dev board I'm working on. and I'm making very rapid progress, as I don't need to go through a whole compile and download step, and get instant feedback from it.

One thing that would really help would be the ability to load in test data. I've tried the following:

module rom (
...
reg [7:0] rom [8191:0];

initial begin
$readmemb("rom.txt", ram);
end
endmodule

This does seem to compile OK in 8 bit workshop, but nothing happens :( If I change the filename to something that's not uploaded, it does give an error, so I think it might work...

Could someone point me towards an example of how to do this if it is supported?

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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