// soc_system_cam_0_crs_inst_crs_int.v

// This file was auto-generated from alt_vip_cl_crs_422_to_var_hw.tcl.  If you edit it your changes
// will probably be lost.
// 
// Generated using ACDS version 18.1 646

`timescale 1 ps / 1 ps
module soc_system_cam_0_crs_inst_crs_int (
		input  wire        main_clock_clk,           // main_clock.clk
		input  wire        main_reset_reset,         // main_reset.reset
		input  wire        av_st_din_valid,          //  av_st_din.valid
		input  wire        av_st_din_startofpacket,  //           .startofpacket
		input  wire        av_st_din_endofpacket,    //           .endofpacket
		input  wire [47:0] av_st_din_data,           //           .data
		output wire        av_st_din_ready,          //           .ready
		output wire        av_st_dout_valid,         // av_st_dout.valid
		output wire        av_st_dout_startofpacket, //           .startofpacket
		output wire        av_st_dout_endofpacket,   //           .endofpacket
		output wire [55:0] av_st_dout_data,          //           .data
		input  wire        av_st_dout_ready          //           .ready
	);

	wire         pip_other_av_st_dout_valid;         // pip_other:av_st_dout_valid -> horiz_upsample:av_st_din_valid
	wire  [47:0] pip_other_av_st_dout_data;          // pip_other:av_st_dout_data -> horiz_upsample:av_st_din_data
	wire         pip_other_av_st_dout_ready;         // horiz_upsample:av_st_din_ready -> pip_other:av_st_dout_ready
	wire         pip_other_av_st_dout_startofpacket; // pip_other:av_st_dout_startofpacket -> horiz_upsample:av_st_din_startofpacket
	wire         pip_other_av_st_dout_endofpacket;   // pip_other:av_st_dout_endofpacket -> horiz_upsample:av_st_din_endofpacket

	alt_vip_pip_converter_core #(
		.PIXEL_WIDTH            (16),
		.PIXELS_IN_PARALLEL_IN  (1),
		.PIXELS_IN_PARALLEL_OUT (1),
		.PIPELINE_READY         (0),
		.SRC_WIDTH              (8),
		.DST_WIDTH              (8),
		.CONTEXT_WIDTH          (8),
		.TASK_WIDTH             (8),
		.INPUT_FIFO_DEPTH       (0),
		.OUTPUT_FIFO_DEPTH      (0)
	) pip_other (
		.clock                    (main_clock_clk),                     // main_clock.clk
		.reset                    (main_reset_reset),                   // main_reset.reset
		.av_st_din_valid          (av_st_din_valid),                    //  av_st_din.valid
		.av_st_din_startofpacket  (av_st_din_startofpacket),            //           .startofpacket
		.av_st_din_endofpacket    (av_st_din_endofpacket),              //           .endofpacket
		.av_st_din_data           (av_st_din_data),                     //           .data
		.av_st_din_ready          (av_st_din_ready),                    //           .ready
		.av_st_dout_valid         (pip_other_av_st_dout_valid),         // av_st_dout.valid
		.av_st_dout_startofpacket (pip_other_av_st_dout_startofpacket), //           .startofpacket
		.av_st_dout_endofpacket   (pip_other_av_st_dout_endofpacket),   //           .endofpacket
		.av_st_dout_data          (pip_other_av_st_dout_data),          //           .data
		.av_st_dout_ready         (pip_other_av_st_dout_ready)          //           .ready
	);

	alt_vip_crs_h_up_core #(
		.COLOR_PLANES_ARE_IN_PARALLEL (1),
		.BITS_PER_SYMBOL              (8),
		.PIXELS_IN_PARALLEL           (1),
		.ALGORITHM                    ("BILINEAR"),
		.CO_SITING                    ("LEFT"),
		.ENABLE_LUMA_ADAPT            (1),
		.PIPELINE_READY               (0),
		.SRC_WIDTH                    (8),
		.DST_WIDTH                    (8),
		.CONTEXT_WIDTH                (8),
		.TASK_WIDTH                   (8),
		.CYCLONE_STYLE                (0),
		.V_SERIES_STYLE               (1)
	) horiz_upsample (
		.clock                    (main_clock_clk),                     // main_clock.clk
		.reset                    (main_reset_reset),                   // main_reset.reset
		.av_st_din_valid          (pip_other_av_st_dout_valid),         //  av_st_din.valid
		.av_st_din_startofpacket  (pip_other_av_st_dout_startofpacket), //           .startofpacket
		.av_st_din_endofpacket    (pip_other_av_st_dout_endofpacket),   //           .endofpacket
		.av_st_din_data           (pip_other_av_st_dout_data),          //           .data
		.av_st_din_ready          (pip_other_av_st_dout_ready),         //           .ready
		.av_st_dout_valid         (av_st_dout_valid),                   // av_st_dout.valid
		.av_st_dout_startofpacket (av_st_dout_startofpacket),           //           .startofpacket
		.av_st_dout_endofpacket   (av_st_dout_endofpacket),             //           .endofpacket
		.av_st_dout_data          (av_st_dout_data),                    //           .data
		.av_st_dout_ready         (av_st_dout_ready)                    //           .ready
	);

endmodule
