--lpm_mux CBX_DECLARE_ALL_CONNECTED_PORTS="OFF" DEVICE_FAMILY="MAX 10" LPM_SIZE=8 LPM_WIDTH=1 LPM_WIDTHS=3 data result sel
--VERSION_BEGIN 15.0 cbx_lpm_mux 2015:04:22:18:04:08:SJ cbx_mgl 2015:04:22:18:06:50:SJ  VERSION_END


-- Copyright (C) 1991-2015 Altera Corporation. All rights reserved.
--  Your use of Altera Corporation's design tools, logic functions 
--  and other software and tools, and its AMPP partner logic 
--  functions, and any output files from any of the foregoing 
--  (including device programming or simulation files), and any 
--  associated documentation or information are expressly subject 
--  to the terms and conditions of the Altera Program License 
--  Subscription Agreement, the Altera Quartus II License Agreement,
--  the Altera MegaCore Function License Agreement, or other 
--  applicable license agreement, including, without limitation, 
--  that your use is for the sole purpose of programming logic 
--  devices manufactured by Altera and sold by Altera or its 
--  authorized distributors.  Please refer to the applicable 
--  agreement for further details.



--synthesis_resources = lut 5 
SUBDESIGN mux_q1b
( 
	data[7..0]	:	input;
	result[0..0]	:	output;
	sel[2..0]	:	input;
) 
VARIABLE 
	result_node[0..0]	: WIRE;
	sel_ffs_wire[2..0]	: WIRE;
	sel_node[2..0]	: WIRE;
	w_data62w[7..0]	: WIRE;
	w_data91w[3..0]	: WIRE;
	w_data92w[3..0]	: WIRE;
	w_sel93w[1..0]	: WIRE;

BEGIN 
	result[] = result_node[];
	result_node[] = ( ((sel_node[2..2] & (((w_data92w[1..1] & w_sel93w[0..0]) & (! (((w_data92w[0..0] & (! w_sel93w[1..1])) & (! w_sel93w[0..0])) # (w_sel93w[1..1] & (w_sel93w[0..0] # w_data92w[2..2]))))) # ((((w_data92w[0..0] & (! w_sel93w[1..1])) & (! w_sel93w[0..0])) # (w_sel93w[1..1] & (w_sel93w[0..0] # w_data92w[2..2]))) & (w_data92w[3..3] # (! w_sel93w[0..0]))))) # ((! sel_node[2..2]) & (((w_data91w[1..1] & w_sel93w[0..0]) & (! (((w_data91w[0..0] & (! w_sel93w[1..1])) & (! w_sel93w[0..0])) # (w_sel93w[1..1] & (w_sel93w[0..0] # w_data91w[2..2]))))) # ((((w_data91w[0..0] & (! w_sel93w[1..1])) & (! w_sel93w[0..0])) # (w_sel93w[1..1] & (w_sel93w[0..0] # w_data91w[2..2]))) & (w_data91w[3..3] # (! w_sel93w[0..0])))))));
	sel_ffs_wire[] = ( sel[2..0]);
	sel_node[] = ( sel_ffs_wire[2..2], sel[1..0]);
	w_data62w[] = ( data[7..0]);
	w_data91w[3..0] = w_data62w[3..0];
	w_data92w[3..0] = w_data62w[7..4];
	w_sel93w[1..0] = sel_node[1..0];
END;
--VALID FILE
