//--=================================================================================================
//-- File Name                           : FHD_4K_SEL.v

//-- Targeted device                     : Microsemi-SoC
//-- Author                              : India Solutions Team
//--
//-- COPYRIGHT 2023 BY MICROSEMI
//-- THE INFORMATION CONTAINED IN THIS DOCUMENT IS SUBJECT TO LICENSING RESTRICTIONS FROM MICROSEMI
//-- CORP. IF YOU ARE NOT IN POSSESSION OF WRITTEN AUTHORIZATION FROM MICROSEMI FOR USE OF THIS
//-- FILE, THEN THE FILE SHOULD BE IMMEDIATELY DESTROYED AND NO BACK-UP OF THE FILE SHOULD BE MADE.
//--
//--=================================================================================================

module FHD_4K_SEL( 

  input sel_i,
  
  output reg [15:0] h_resolution_o,
  output reg [15:0] v_resolution_o, 
  output reg [15:0] h_f_porch_o   , 
  output reg [15:0] h_b_porch_o   ,  
  output reg [15:0] v_f_porch_o   ,  
  output reg [15:0] v_b_porch_o   ,  
  output reg [15:0] h_sync_width_o,  
  output reg [15:0] v_sync_width_o
 ); 
    
always@(*)
  if (sel_i) begin
  //FHD 4 pixel
        h_resolution_o	<= 16'h0780;
        v_resolution_o	<= 16'h0438;
        h_f_porch_o   	<= 16'h0058;
        h_b_porch_o     <= 16'h0094;
        v_f_porch_o     <= 16'h0004;
        v_b_porch_o     <= 16'h0024;
        h_sync_width_o  <= 16'h002C;
        v_sync_width_o  <= 16'h0005;  
  end
  else begin  
  //4K 4 pixel  
        h_resolution_o	<= 16'h0F00;
        v_resolution_o	<= 16'h0870;
        h_f_porch_o   	<= 16'h00B0;
        h_b_porch_o     <= 16'h0128;
        v_f_porch_o     <= 16'h0008;
        v_b_porch_o     <= 16'h0048;
        h_sync_width_o  <= 16'h0058;
        v_sync_width_o  <= 16'h000A;  
  end        
  
endmodule

