Outils pour utilisateurs

Outils du site


en202:vga_bitmap

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
en202:vga_bitmap [2023/11/05 22:24] – [memory usage (Artix 7)] Yannick Bornaten202:vga_bitmap [2023/11/05 23:02] (Version actuelle) – [instanciation] Yannick Bornat
Ligne 13: Ligne 13:
   * reset is active high   * reset is active high
  
 +----
 +====instanciation====
 +
 +The most simple version is to be instanced with the following lines. Optional I/Os are not used, and might produce warnings, you can safely ignore them.
 +
 +
 +    display_module : entity work.vga_bitmap_640x480
 +        generic map(RAM_BPP  => 4,            -- number of bits per pixels
 +                    INDEXED  => 0,            -- do not used indexed colors
 +                    READBACK => 0)            -- read from bitmap memory disabled
 +                    
 +        port map(clk          => clk,         -- 100MHz system clock      
 +                 reset        => reset,       -- active high system reset
 +                 
 +                 VGA_hs       => VGA_hs,      -- VGA screen output
 +                 VGA_vs       => VGA_vs,
 +                 VGA_color    => VGA_color,
 +                 
 +                 pixel_x      => pixel_x,     -- pixel horizontal coordinate
 +                 pixel_y      => pixel_y,     -- pixel vertical coordinate
 +                 data_in      => data_in,     -- new color for the addressed pixel
 +                 data_write   => data_write); -- write order
 +
 +If data readback is required, it becomes :
 +  * **warning**: a 5 to 6 clock periods latency is necessary between the //data_read// assertion and //data_rout// assertion
 +  * data read requests can be pipelined
 +
 +
 +    display_module : entity work.vga_bitmap_640x480
 +        generic map(RAM_BPP  => 4,            -- number of bits per pixels
 +                    INDEXED  => 0,            -- do not used indexed colors
 +                    READBACK => 1)            -- read from bitmap memory enabled
 +                    
 +        port map(clk          => clk,         -- 100MHz system clock      
 +                 reset        => reset,       -- active high system reset
 +                 
 +                 VGA_hs       => VGA_hs,      -- VGA screen output
 +                 VGA_vs       => VGA_vs,
 +                 VGA_color    => VGA_color,
 +                 
 +                 pixel_x      => pixel_x,     -- pixel horizontal coordinate
 +                 pixel_y      => pixel_y,     -- pixel vertical coordinate
 +                 data_in      => data_in,     -- new color for the addressed pixel
 +                 data_write   => data_write,  -- write order
 +                 
 +                 data_read    => data_read,   -- read order
 +                 data_rout    => data_rout,   -- data read is ready
 +                 data_out     => data_out):   -- pixel read color
 +
 +The //end_of_frame// output signal might also be useful to synchronize display updates with screen refresh.
 ---- ----
 ==== addressing a pixel ==== ==== addressing a pixel ====
en202/vga_bitmap.1699219490.txt.gz · Dernière modification : 2023/11/05 22:24 de Yannick Bornat