ROM0 now has the spectrum rom

This commit is contained in:
2022-03-30 13:18:06 +03:00
parent c59b02b186
commit 9d6eb7a9fa
94 changed files with 27700 additions and 9902 deletions
+4 -4
View File
@@ -3,7 +3,7 @@ module spectrum(
output wire[7:0] LED
);
reg[2:0] address;
reg[13:0] address;
wire[7:0] mem_data;
rom0 rom(
@@ -12,12 +12,12 @@ rom0 rom(
.q(mem_data)
);
reg[20:0] counter;
reg[21:0] counter;
always @(posedge CLOCK_50)
begin
counter = counter + 1;
counter <= counter + 1;
if (counter == 0)
address = address + 1;
address <= address + 1;
end
assign LED = mem_data;