- removed (quick and dirty) copy of front-Pointer to back-Pointer on buffer change. back-Pointer keeps host written value.
Committed on the Free edition of March Hare Software CVSNT Server. Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/ git-svn-id: http://moon:8086/svn/vhdl/trunk@663 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -357,20 +357,15 @@ pixel_counter:
|
||||
if pixel_cnt_rst = '1' then
|
||||
pixel_cnt := 0;
|
||||
front := host_fb_front;
|
||||
back := host_fb_back;
|
||||
elsif request_cnt_en = '1' and SRDY_I = '1' then
|
||||
if pixel_cnt /= MAX_REQUEST_CNT/2-1 then
|
||||
pixel_cnt := pixel_cnt + 1;
|
||||
else
|
||||
pixel_cnt := 0;
|
||||
front := vga_fb_back;
|
||||
back := vga_fb_front;
|
||||
front := host_fb_back;
|
||||
bufchg <= '1';
|
||||
end if;
|
||||
end if;
|
||||
if host_fb_back_we = '1' then
|
||||
back := host_fb_back;
|
||||
end if;
|
||||
vga_fb_front <= front;
|
||||
vga_fb_back <= back;
|
||||
ADDR_O <= front + (to_unsigned(pixel_cnt, 29) & "000");
|
||||
@@ -487,7 +482,7 @@ registers_write:
|
||||
vga_master_en <= '0';
|
||||
bufchg_irq_en <= '0';
|
||||
host_fb_front <= X"40000000";
|
||||
host_fb_back <= X"40004000";
|
||||
host_fb_back <= X"40010000";
|
||||
cg_color <= (X"FF", X"FF", X"FF", X"FF");
|
||||
elsif (STB_I and CYC_I and WE_I) = '1' then
|
||||
case ADDR_I(5 downto 2) is
|
||||
|
||||
Reference in New Issue
Block a user