OpenCores
URL https://opencores.org/ocsvn/qaz_libs/qaz_libs/trunk

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [BFM/] [src/] [8b10b/] [video_frame/] [vf_8b10b_config.svh] - Diff between revs 46 and 47

Show entire file | Details | Blame | View Log

Rev 46 Rev 47
Line 43... Line 43...
  // --------------------------------------------------------------------
  // --------------------------------------------------------------------
  function void init
  function void init
  ( int pixels_per_line
  ( int pixels_per_line
  , int lines_per_frame
  , int lines_per_frame
  , int bits_per_pixel
  , int bits_per_pixel
 
  , int channel_id = 0
  , string    name = ""
  , string    name = ""
  );
  );
    this.pixels_per_line  = pixels_per_line;
    this.pixels_per_line  = pixels_per_line;
    this.lines_per_frame  = lines_per_frame;
    this.lines_per_frame  = lines_per_frame;
    this.bits_per_pixel   = bits_per_pixel;
    this.bits_per_pixel   = bits_per_pixel;
 
    this.channel_id       = channel_id;
    this.name             = name;
    this.name             = name;
    this.bytes_per_pixel  = (bits_per_pixel % 8 == 0)
    this.bytes_per_pixel  = (bits_per_pixel % 8 == 0)
                          ? (bits_per_pixel / 8)
                          ? (bits_per_pixel / 8)
                          : (bits_per_pixel / 8) + 1;
                          : (bits_per_pixel / 8) + 1;
  endfunction: init
  endfunction: init

powered by: WebSVN 2.1.0

© copyright 1999-2020 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.