chip8 draws in st7920 format now

This commit is contained in:
Nicholas Orlowsky 2024-04-06 21:36:24 -05:00
parent 9804af7796
commit fdd6553f11
Signed by: nickorlow
GPG key ID: 838827D8C4611687
4 changed files with 47 additions and 15 deletions

8
gpu.sv
View file

@ -1,15 +1,17 @@
module gpu (
input wire vram[0:2047]
input wire [7:0] vram[0:1023]
);
import "DPI-C" function void init_screen();
import "DPI-C" function void draw_screen(logic vram[0:2047]);
import "DPI-C" function void draw_screen(logic [7:0] vram[0:1023]);
initial begin
init_screen();
end
always_comb begin
draw_screen(vram);
draw_screen(vram);
end
endmodule