mirror of
https://github.com/Gehstock/Mist_FPGA.git
synced 2026-01-19 09:18:02 +00:00
IremM62: add Lode Runner 3 topbottom mask
...for vertical scroll garbage supression
This commit is contained in:
parent
272dd86bcd
commit
ef227c1d96
@ -83,6 +83,7 @@ begin
|
||||
|
||||
-- video data signals (in)
|
||||
rgb_i => rgb_data,
|
||||
topbottom_mask => graphics_i.bit16(3)(0),
|
||||
|
||||
-- video control signals (out)
|
||||
video_ctl_o => from_video_ctl,
|
||||
|
||||
@ -17,6 +17,7 @@ entity iremm62_video_controller is
|
||||
|
||||
-- video input data
|
||||
rgb_i : in RGB_t;
|
||||
topbottom_mask: in std_logic;
|
||||
|
||||
-- control signals (out)
|
||||
video_ctl_o : out from_VIDEO_CTL_t;
|
||||
@ -82,7 +83,10 @@ begin
|
||||
-- display blank
|
||||
if hcnt = "00"&x"FF" then
|
||||
hblank1 <= '0';
|
||||
if vcnt = '1'&x"00" then
|
||||
if vcnt = '1'&x"00" and topbottom_mask = '0' then
|
||||
vblank <= '0';
|
||||
end if;
|
||||
if vcnt = '1'&x"08" then
|
||||
vblank <= '0';
|
||||
end if;
|
||||
end if;
|
||||
@ -95,6 +99,9 @@ begin
|
||||
end if;
|
||||
if hcnt = "00"&x"87" then
|
||||
hblank2 <= '1';
|
||||
if vcnt = '1'&x"F7" and topbottom_mask = '1' then
|
||||
vblank <= '1';
|
||||
end if;
|
||||
if vcnt = '1'&x"FF" then
|
||||
vblank <= '1';
|
||||
end if;
|
||||
|
||||
@ -552,6 +552,7 @@ begin
|
||||
graphics_o.bit16(0) <= scrollram_d_o when hwsel = HW_HORIZON else m62_hscroll;
|
||||
graphics_o.bit16(1) <= m62_vscroll;
|
||||
graphics_o.bit16(2) <= m62_vscroll2;
|
||||
graphics_o.bit16(3)(0) <= m62_topbottom_mask;
|
||||
end block BLK_SCROLL;
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user