Skip to content

Commit 4bcf7f5

Browse files
Multimode Display Core
This core has four display modes: 640x480 / 800x600 / 1024x768 / 1280x1024 Two switches control what mode is used.
1 parent 3d48aa1 commit 4bcf7f5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

MMD.v

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
`define vvaXGA 11'd38
2121
`define vwfXGA 11'd806
2222

23-
`define polSVGA 1'd0
23+
`define polSVGA 1'd1
2424
`define hfpSVGA 11'd40
2525
`define hbpSVGA 11'd168
2626
`define hvaSVGA 11'd256
@@ -30,7 +30,7 @@
3030
`define vvaSVGA 11'd28
3131
`define vwfSVGA 11'd628
3232

33-
`define polVGA 1'd1
33+
`define polVGA 1'd0
3434
`define hfpVGA 11'd16
3535
`define hbpVGA 11'd112
3636
`define hvaVGA 11'd160
@@ -67,7 +67,7 @@ module ALL(
6767
assign Vsync = vsync[rez];
6868

6969
always@(*)begin
70-
if((hcount[rez]==0)&&(vcount[rez]==0))begin
70+
if((hcount[rez]==1)&&(vcount[rez]==1))begin
7171
rez=sw;
7272
end
7373
end
@@ -187,11 +187,11 @@ module Display(
187187
if(hCount<HWL)
188188
hCount<=hCount+10'd1;
189189
else begin
190-
hCount<=10'd0;
190+
hCount<=10'd1;
191191
if(vCount<VWF)begin
192192
vCount<=vCount+10'd1;
193193
end else begin
194-
vCount<=10'd0;
194+
vCount<=10'd1;
195195
end
196196
end
197197
if(x[2:0]==3'd6)begin

0 commit comments

Comments
 (0)