chip8 draws in st7920 format now
This commit is contained in:
parent
9804af7796
commit
fdd6553f11
4 changed files with 47 additions and 15 deletions
8
gpu.sv
8
gpu.sv
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue