module altera_serial_flash_loader (

	asmi_access_granted,

	asdo_in,

	data_in,

	data_oe,

	dclk_in,

	ncso_in,

	noe_in,

	asmi_access_request,

	data0_out,

	data_out);



	parameter

		ENABLE_QUAD_SPI_SUPPORT = 1,

		ENABLE_SHARED_ACCESS = "ON",

		ENHANCED_MODE = 1,

		INTENDED_DEVICE_FAMILY = "Arria 10",

		NCSO_WIDTH = 3;

		

	input	asmi_access_granted;

	input	asdo_in;

	input	[3:0]  data_in;

	input	[3:0]  data_oe;

	input	dclk_in;

	input	[NCSO_WIDTH-1:0]  ncso_in;

	input	noe_in;

	output	asmi_access_request;

	output	data0_out;

	output	[3:0]  data_out;



	wire	sub_wire0;

	wire	sub_wire1;

	wire	[3:0] sub_wire2;

	wire	asmi_access_request = sub_wire0;

	wire	data0_out = sub_wire1;

	wire	[3:0] data_out = sub_wire2[3:0];



	altserial_flash_loader	altserial_flash_loader_component (

				.asmi_access_granted (asmi_access_granted),

				.data_in (data_in),

				.data_oe (data_oe),

				.dclkin (dclk_in),

				.noe (noe_in),

				.scein (ncso_in),

				.asmi_access_request (sub_wire0),

				.data_out (sub_wire2),

				.data0out (sub_wire1),

				.sdoin (asdo_in)

				);

	defparam

		altserial_flash_loader_component.enable_quad_spi_support = ENABLE_QUAD_SPI_SUPPORT,

		altserial_flash_loader_component.enable_shared_access = ENABLE_SHARED_ACCESS,

		altserial_flash_loader_component.enhanced_mode = ENHANCED_MODE,

		altserial_flash_loader_component.intended_device_family = INTENDED_DEVICE_FAMILY,

		altserial_flash_loader_component.ncso_width = NCSO_WIDTH;





endmodule