data/full_repos/permissive/407433468/2010-PRJ0_BASE_1/BB_SYSTEM.v
1: b"%Error: data/full_repos/permissive/407433468/2010-PRJ0_BASE_1/BB_SYSTEM.v:153: syntax error, unexpected '.'\nparameter DATA_FIXED_INITREGOBS3_0 = 8'b00000000;. \n                                                 ^\n%Error: Exiting due to 1 error(s)\n"
module BB_SYSTEM (

	BB_SYSTEM_display_OutBUS,
	BB_SYSTEM_max7219DIN_Out,
	BB_SYSTEM_max7219NCS_Out,
	BB_SYSTEM_max7219CLK_Out,

	BB_SYSTEM_startButton_Out, 
	BB_SYSTEM_leftButton_Out,
	BB_SYSTEM_rightButton_Out,


	BB_SYSTEM_CLOCK_50,
	BB_SYSTEM_RESET_InHigh,
	BB_SYSTEM_startButton_InLow, 
	BB_SYSTEM_leftButton_InLow,
	BB_SYSTEM_rightButton_InLow
);



	parameter DATAWIDTH_BUS = 8;
	parameter DATAWIDTH_OBSTACLESselection = 8;
	parameter DATAWIDTH_HOUSESselection = 8;
	parameter PRESCALER_DATAWIDTH = 23;
	parameter DISPLAY_DATAWIDTH = 12;






parameter DATA_FIXED_INITREGPOINT_7 = 8'b00010000;
parameter DATA_FIXED_INITREGPOINT_6 = 8'b00000000;
parameter DATA_FIXED_INITREGPOINT_5 = 8'b00000000;
parameter DATA_FIXED_INITREGPOINT_4 = 8'b00000000;
parameter DATA_FIXED_INITREGPOINT_3 = 8'b00000000;
parameter DATA_FIXED_INITREGPOINT_2 = 8'b00000000;
parameter DATA_FIXED_INITREGPOINT_1 = 8'b00000000;
parameter DATA_FIXED_INITREGPOINT_0 = 8'b00000000;









parameter DATA_FIXED_loss_7 = 8'b00000000;
parameter DATA_FIXED_loss_6 = 8'b01000010;
parameter DATA_FIXED_loss_5 = 8'b00100100;
parameter DATA_FIXED_loss_4 = 8'b00011000;
parameter DATA_FIXED_loss_3 = 8'b00011000;
parameter DATA_FIXED_loss_2 = 8'b00100100;
parameter DATA_FIXED_loss_1 = 8'b01000010;
parameter DATA_FIXED_loss_0 = 8'b00000000;


parameter DATA_FIXED_win_7 = 8'b00000000;
parameter DATA_FIXED_win_6 = 8'b00000000;
parameter DATA_FIXED_win_5 = 8'b00100100;
parameter DATA_FIXED_win_4 = 8'b00000000;
parameter DATA_FIXED_win_3 = 8'b01000010;
parameter DATA_FIXED_win_2 = 8'b00111100;
parameter DATA_FIXED_win_1 = 8'b00000000;
parameter DATA_FIXED_win_0 = 8'b00000000;







parameter DATA_FIXED_LEVEL1_7 = 8'b00000000;
parameter DATA_FIXED_LEVEL1_6 = 8'b00011000;
parameter DATA_FIXED_LEVEL1_5 = 8'b00101000;
parameter DATA_FIXED_LEVEL1_4 = 8'b01001000;
parameter DATA_FIXED_LEVEL1_3 = 8'b00001000;
parameter DATA_FIXED_LEVEL1_2 = 8'b00001000;
parameter DATA_FIXED_LEVEL1_1 = 8'b01111110;
parameter DATA_FIXED_LEVEL1_0 = 8'b00000000;


parameter DATA_FIXED_LEVEL2_7 = 8'b00000000;
parameter DATA_FIXED_LEVEL2_6 = 8'b01111110;
parameter DATA_FIXED_LEVEL2_5 = 8'b00000010;
parameter DATA_FIXED_LEVEL2_4 = 8'b00000010;
parameter DATA_FIXED_LEVEL2_3 = 8'b01111110;
parameter DATA_FIXED_LEVEL2_2 = 8'b01000000;
parameter DATA_FIXED_LEVEL2_1 = 8'b01111110;
parameter DATA_FIXED_LEVEL2_0 = 8'b00000000;



parameter DATA_FIXED_LEVEL3_7 = 8'b00000000;
parameter DATA_FIXED_LEVEL3_6 = 8'b01111110;
parameter DATA_FIXED_LEVEL3_5 = 8'b00000010;
parameter DATA_FIXED_LEVEL3_4 = 8'b00111110;
parameter DATA_FIXED_LEVEL3_3 = 8'b00111110;
parameter DATA_FIXED_LEVEL3_2 = 8'b00000010;
parameter DATA_FIXED_LEVEL3_1 = 8'b01111110;
parameter DATA_FIXED_LEVEL3_0 = 8'b00000000;







parameter DATA_FIXED_INITREGOBS1= 8'b00000000;
 


parameter DATA_FIXED_INITREGOBS2_7 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS2_6 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS2_5 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS2_4 = 8'b00100110;
parameter DATA_FIXED_INITREGOBS2_3 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS2_2 = 8'b01010100;
parameter DATA_FIXED_INITREGOBS2_1 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS2_0 = 8'b00000000; 



parameter DATA_FIXED_INITREGOBS3_7 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS3_6 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS3_5 = 8'b01100100;
parameter DATA_FIXED_INITREGOBS3_4 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS3_3 = 8'b00010010;
parameter DATA_FIXED_INITREGOBS3_2 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS3_1 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS3_0 = 8'b00000000;. 




 parameter DATA_FIXED_INITREGHOUSES1_1 = 8'b00000000;
 parameter DATA_FIXED_INITREGHOUSES1_0 = 8'b10111011;


 parameter DATA_FIXED_INITREGHOUSES2_1 = 8'b00000000;
 parameter DATA_FIXED_INITREGHOUSES2_0 = 8'b11110011;


 parameter DATA_FIXED_INITREGHOUSES3_1 = 8'b11011011;
 parameter DATA_FIXED_INITREGHOUSES3_0 = 8'b10011011;





output		[DISPLAY_DATAWIDTH-1:0] BB_SYSTEM_display_OutBUS;
output		BB_SYSTEM_max7219DIN_Out;
output		BB_SYSTEM_max7219NCS_Out;
output		BB_SYSTEM_max7219CLK_Out;

output 		BB_SYSTEM_startButton_Out;
output 		BB_SYSTEM_leftButton_Out;
output 		BB_SYSTEM_rightButton_Out;

input		BB_SYSTEM_CLOCK_50;
input		BB_SYSTEM_RESET_InHigh;
input		BB_SYSTEM_startButton_InLow;
input		BB_SYSTEM_leftButton_InLow;
input		BB_SYSTEM_rightButton_InLow;







wire 	BB_SYSTEM_startButton_InLow_wire; 
wire 	BB_SYSTEM_leftButton_InLow_wire;
wire 	BB_SYSTEM_rightButton_InLow_wire;


wire 	[PRESCALER_DATAWIDTH-1:0] upSPEEDCOUNTER_data_BUS_wire;
wire 	SPEEDCOMPARATOR_2_STATEMACHINEPOINT_T0_wire;



wire 	STATEMACHINEPOINT_upcount_wire;

wire	STATEMACHINEPOINT_POINTselection_wire;
wire    [DATAWIDTH_BUS-1:0] MULTIPLEXOR_PointSelection_wire;

wire	STATEMACHINEPOINT_clear_wire;
wire	STATEMACHINEPOINT_load_Point_wire;

wire	STATEMACHINEPOINT_shiftselection_wire;

wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data7_Out;  
wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data6_Out;
wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data5_Out;
wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data4_Out;
wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data3_Out;
wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data2_Out;
wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data1_Out;
wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data0_Out;



















 

















wire [DATAWIDTH_BUS-1:0] regGAME_data7_wire;
wire [DATAWIDTH_BUS-1:0] regGAME_data6_wire;
wire [DATAWIDTH_BUS-1:0] regGAME_data5_wire;
wire [DATAWIDTH_BUS-1:0] regGAME_data4_wire;
wire [DATAWIDTH_BUS-1:0] regGAME_data3_wire;
wire [DATAWIDTH_BUS-1:0] regGAME_data2_wire;
wire [DATAWIDTH_BUS-1:0] regGAME_data1_wire;
wire [DATAWIDTH_BUS-1:0] regGAME_data0_wire;

wire 	[7:0] data_max;
wire 	[2:0] add;


wire [DATAWIDTH_BUS-1:0] upCOUNTER_2_BIN2BCD1_data_BUS_wire;
wire [DISPLAY_DATAWIDTH-1:0] BIN2BCD1_2_SEVENSEG1_data_BUS_wire;








SC_DEBOUNCE1 SC_DEBOUNCE1_u0 (

	.SC_DEBOUNCE1_button_Out(BB_SYSTEM_startButton_InLow_wire),
	.SC_DEBOUNCE1_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_DEBOUNCE1_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_DEBOUNCE1_button_In(~BB_SYSTEM_startButton_InLow)
);
SC_DEBOUNCE1 SC_DEBOUNCE1_u1 (

	.SC_DEBOUNCE1_button_Out(BB_SYSTEM_leftButton_InLow_wire),
	.SC_DEBOUNCE1_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_DEBOUNCE1_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_DEBOUNCE1_button_In(~BB_SYSTEM_leftButton_InLow)
);
SC_DEBOUNCE1 SC_DEBOUNCE1_u2 (

	.SC_DEBOUNCE1_button_Out(BB_SYSTEM_rightButton_InLow_wire),
	.SC_DEBOUNCE1_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_DEBOUNCE1_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_DEBOUNCE1_button_In(~BB_SYSTEM_rightButton_InLow)
);










CC_MUX21 #(.MUX21_DATAWIDTH(DATAWIDTH_BUS)) CC_MUX21_u0 (

	.CC_MUX21_z_Out(MULTIPLEXOR_PointSelection_wire), 
	.CC_MUX21_select_InBUS(STATEMACHINEPOINT_POINTselection_wire),
	.CC_MUX21_data1_InBUS(DATA_FIXED_INITREGPOINT_0),
	.CC_MUX21_data2_InBUS(DATA_FIXED_INITREGPOINT_7)
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_7)) SC_RegPOINTTYPE_u7 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data7_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS( MULTIPLEXOR_PointSelection_wire )
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_6)) SC_RegPOINTTYPE_u6 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data6_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS(RegPOINTTYPE_2_POINTMATRIX_data7_Out)
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_5)) SC_RegPOINTTYPE_u5 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data5_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS(RegPOINTTYPE_2_POINTMATRIX_data6_Out)
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_4)) SC_RegPOINTTYPE_u4 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data4_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS(RegPOINTTYPE_2_POINTMATRIX_data5_Out)
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_3)) SC_RegPOINTTYPE_u3 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data3_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS(POINTMATRIX_data4_Out)
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_2)) SC_RegPOINTTYPE_u2 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data2_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS(POINTMATRIX_data3_Out)
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_1)) SC_RegPOINTTYPE_u1 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data1_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS(POINTMATRIX_data2_Out)
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_0)) SC_RegPOINTTYPE_u0 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data0_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS(POINTMATRIX_data1_Out)
);

SC_STATEMACHINEPOINT SC_STATEMACHINEPOINT_u0 (

	.SC_STATEMACHINEPOINT_clear_OutLow(STATEMACHINEPOINT_clear_wire), 
	.SC_STATEMACHINEPOINT_load0_OutLow(STATEMACHINEPOINT_load_Point_wire), 
	.SC_STATEMACHINEPOINT_shiftselection_Out(STATEMACHINEPOINT_shiftselection_wire),
	.SC_STATEMACHINEPOINT_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_STATEMACHINEPOINT_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_STATEMACHINEPOINT_startButton_InLow(BB_SYSTEM_startButton_InLow_wire), 
	.SC_STATEMACHINEPOINT_leftButton_InLow(BB_SYSTEM_leftButton_InLow_wire), 
	.SC_STATEMACHINEPOINT_rightButton_InLow(BB_SYSTEM_rightButton_InLow_wire),
	.SC_STATEMACHINEPOINT_T0_InLow(SPEEDCOMPARATOR_2_STATEMACHINEBACKG_T0_wire)
);





assign regGAME_data0_wire = DATA_FIXED_INITREGPOINT_0;
assign regGAME_data1_wire = DATA_FIXED_INITREGPOINT_1;
assign regGAME_data2_wire = DATA_FIXED_INITREGPOINT_2;
assign regGAME_data3_wire = DATA_FIXED_INITREGPOINT_3;
assign regGAME_data4_wire = DATA_FIXED_INITREGPOINT_4;
assign regGAME_data5_wire = DATA_FIXED_INITREGPOINT_5;
assign regGAME_data6_wire = DATA_FIXED_INITREGPOINT_6;
assign regGAME_data7_wire = DATA_FIXED_INITREGPOINT_7;

assign data_max =(add==3'b000)?{regGAME_data0_wire[7],regGAME_data1_wire[7],regGAME_data2_wire[7],regGAME_data3_wire[7],regGAME_data4_wire[7],regGAME_data5_wire[7],regGAME_data6_wire[7],regGAME_data7_wire[7]}:
	       (add==3'b001)?{regGAME_data0_wire[6],regGAME_data1_wire[6],regGAME_data2_wire[6],regGAME_data3_wire[6],regGAME_data4_wire[6],regGAME_data5_wire[6],regGAME_data6_wire[6],regGAME_data7_wire[6]}:
	       (add==3'b010)?{regGAME_data0_wire[5],regGAME_data1_wire[5],regGAME_data2_wire[5],regGAME_data3_wire[5],regGAME_data4_wire[5],regGAME_data5_wire[5],regGAME_data6_wire[5],regGAME_data7_wire[5]}:
	       (add==3'b011)?{regGAME_data0_wire[4],regGAME_data1_wire[4],regGAME_data2_wire[4],regGAME_data3_wire[4],regGAME_data4_wire[4],regGAME_data5_wire[4],regGAME_data6_wire[4],regGAME_data7_wire[4]}:
	       (add==3'b100)?{regGAME_data0_wire[3],regGAME_data1_wire[3],regGAME_data2_wire[3],regGAME_data3_wire[3],regGAME_data4_wire[3],regGAME_data5_wire[3],regGAME_data6_wire[3],regGAME_data7_wire[3]}:
	       (add==3'b101)?{regGAME_data0_wire[2],regGAME_data1_wire[2],regGAME_data2_wire[2],regGAME_data3_wire[2],regGAME_data4_wire[2],regGAME_data5_wire[2],regGAME_data6_wire[2],regGAME_data7_wire[2]}:
	       (add==3'b110)?{regGAME_data0_wire[1],regGAME_data1_wire[1],regGAME_data2_wire[1],regGAME_data3_wire[1],regGAME_data4_wire[1],regGAME_data5_wire[1],regGAME_data6_wire[1],regGAME_data7_wire[1]}:
						{regGAME_data0_wire[0],regGAME_data1_wire[0],regGAME_data2_wire[0],regGAME_data3_wire[0],regGAME_data4_wire[0],regGAME_data5_wire[0],regGAME_data6_wire[0],regGAME_data7_wire[0]};
									 
matrix_ctrl matrix_ctrl_unit_0( 
.max7219_din(BB_SYSTEM_max7219DIN_Out),
.max7219_ncs(BB_SYSTEM_max7219NCS_Out),
.max7219_clk(BB_SYSTEM_max7219CLK_Out),
.disp_data(data_max), 
.disp_addr(add),
.intensity(4'hA),
.clk(BB_SYSTEM_CLOCK_50),
.reset(BB_SYSTEM_RESET_InHigh)
 ); 
 




assign BB_SYSTEM_startButton_Out = BB_SYSTEM_startButton_InLow_cwire;
assign BB_SYSTEM_leftButton_Out = BB_SYSTEM_leftButton_InLow_cwire;
assign BB_SYSTEM_rightButton_Out = BB_SYSTEM_rightButton_InLow_cwire;

assign BB_SYSTEM_TEST0 = BB_SYSTEM_startButton_InLow_cwire;
assign BB_SYSTEM_TEST1 = BB_SYSTEM_startButton_InLow_cwire;
assign BB_SYSTEM_TEST2 = BB_SYSTEM_startButton_InLow_cwire;



endmodule
module BB_SYSTEM (

	BB_SYSTEM_display_OutBUS,
	BB_SYSTEM_max7219DIN_Out,
	BB_SYSTEM_max7219NCS_Out,
	BB_SYSTEM_max7219CLK_Out,

	BB_SYSTEM_startButton_Out, 
	BB_SYSTEM_leftButton_Out,
	BB_SYSTEM_rightButton_Out,


	BB_SYSTEM_CLOCK_50,
	BB_SYSTEM_RESET_InHigh,
	BB_SYSTEM_startButton_InLow, 
	BB_SYSTEM_leftButton_InLow,
	BB_SYSTEM_rightButton_InLow
);




	parameter DATAWIDTH_BUS = 8;
	parameter DATAWIDTH_OBSTACLESselection = 8;
	parameter DATAWIDTH_HOUSESselection = 8;
	parameter PRESCALER_DATAWIDTH = 23;
	parameter DISPLAY_DATAWIDTH = 12;






parameter DATA_FIXED_INITREGPOINT_7 = 8'b00010000;
parameter DATA_FIXED_INITREGPOINT_6 = 8'b00000000;
parameter DATA_FIXED_INITREGPOINT_5 = 8'b00000000;
parameter DATA_FIXED_INITREGPOINT_4 = 8'b00000000;
parameter DATA_FIXED_INITREGPOINT_3 = 8'b00000000;
parameter DATA_FIXED_INITREGPOINT_2 = 8'b00000000;
parameter DATA_FIXED_INITREGPOINT_1 = 8'b00000000;
parameter DATA_FIXED_INITREGPOINT_0 = 8'b00000000;









parameter DATA_FIXED_loss_7 = 8'b00000000;
parameter DATA_FIXED_loss_6 = 8'b01000010;
parameter DATA_FIXED_loss_5 = 8'b00100100;
parameter DATA_FIXED_loss_4 = 8'b00011000;
parameter DATA_FIXED_loss_3 = 8'b00011000;
parameter DATA_FIXED_loss_2 = 8'b00100100;
parameter DATA_FIXED_loss_1 = 8'b01000010;
parameter DATA_FIXED_loss_0 = 8'b00000000;


parameter DATA_FIXED_win_7 = 8'b00000000;
parameter DATA_FIXED_win_6 = 8'b00000000;
parameter DATA_FIXED_win_5 = 8'b00100100;
parameter DATA_FIXED_win_4 = 8'b00000000;
parameter DATA_FIXED_win_3 = 8'b01000010;
parameter DATA_FIXED_win_2 = 8'b00111100;
parameter DATA_FIXED_win_1 = 8'b00000000;
parameter DATA_FIXED_win_0 = 8'b00000000;







parameter DATA_FIXED_LEVEL1_7 = 8'b00000000;
parameter DATA_FIXED_LEVEL1_6 = 8'b00011000;
parameter DATA_FIXED_LEVEL1_5 = 8'b00101000;
parameter DATA_FIXED_LEVEL1_4 = 8'b01001000;
parameter DATA_FIXED_LEVEL1_3 = 8'b00001000;
parameter DATA_FIXED_LEVEL1_2 = 8'b00001000;
parameter DATA_FIXED_LEVEL1_1 = 8'b01111110;
parameter DATA_FIXED_LEVEL1_0 = 8'b00000000;


parameter DATA_FIXED_LEVEL2_7 = 8'b00000000;
parameter DATA_FIXED_LEVEL2_6 = 8'b01111110;
parameter DATA_FIXED_LEVEL2_5 = 8'b00000010;
parameter DATA_FIXED_LEVEL2_4 = 8'b00000010;
parameter DATA_FIXED_LEVEL2_3 = 8'b01111110;
parameter DATA_FIXED_LEVEL2_2 = 8'b01000000;
parameter DATA_FIXED_LEVEL2_1 = 8'b01111110;
parameter DATA_FIXED_LEVEL2_0 = 8'b00000000;



parameter DATA_FIXED_LEVEL3_7 = 8'b00000000;
parameter DATA_FIXED_LEVEL3_6 = 8'b01111110;
parameter DATA_FIXED_LEVEL3_5 = 8'b00000010;
parameter DATA_FIXED_LEVEL3_4 = 8'b00111110;
parameter DATA_FIXED_LEVEL3_3 = 8'b00111110;
parameter DATA_FIXED_LEVEL3_2 = 8'b00000010;
parameter DATA_FIXED_LEVEL3_1 = 8'b01111110;
parameter DATA_FIXED_LEVEL3_0 = 8'b00000000;







parameter DATA_FIXED_INITREGOBS1= 8'b00000000;
 


parameter DATA_FIXED_INITREGOBS2_7 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS2_6 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS2_5 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS2_4 = 8'b00100110;
parameter DATA_FIXED_INITREGOBS2_3 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS2_2 = 8'b01010100;
parameter DATA_FIXED_INITREGOBS2_1 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS2_0 = 8'b00000000; 



parameter DATA_FIXED_INITREGOBS3_7 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS3_6 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS3_5 = 8'b01100100;
parameter DATA_FIXED_INITREGOBS3_4 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS3_3 = 8'b00010010;
parameter DATA_FIXED_INITREGOBS3_2 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS3_1 = 8'b00000000;
parameter DATA_FIXED_INITREGOBS3_0 = 8'b00000000;. 




 parameter DATA_FIXED_INITREGHOUSES1_1 = 8'b00000000;
 parameter DATA_FIXED_INITREGHOUSES1_0 = 8'b10111011;


 parameter DATA_FIXED_INITREGHOUSES2_1 = 8'b00000000;
 parameter DATA_FIXED_INITREGHOUSES2_0 = 8'b11110011;


 parameter DATA_FIXED_INITREGHOUSES3_1 = 8'b11011011;
 parameter DATA_FIXED_INITREGHOUSES3_0 = 8'b10011011;





output		[DISPLAY_DATAWIDTH-1:0] BB_SYSTEM_display_OutBUS;
output		BB_SYSTEM_max7219DIN_Out;
output		BB_SYSTEM_max7219NCS_Out;
output		BB_SYSTEM_max7219CLK_Out;

output 		BB_SYSTEM_startButton_Out;
output 		BB_SYSTEM_leftButton_Out;
output 		BB_SYSTEM_rightButton_Out;

input		BB_SYSTEM_CLOCK_50;
input		BB_SYSTEM_RESET_InHigh;
input		BB_SYSTEM_startButton_InLow;
input		BB_SYSTEM_leftButton_InLow;
input		BB_SYSTEM_rightButton_InLow;







wire 	BB_SYSTEM_startButton_InLow_wire; 
wire 	BB_SYSTEM_leftButton_InLow_wire;
wire 	BB_SYSTEM_rightButton_InLow_wire;


wire 	[PRESCALER_DATAWIDTH-1:0] upSPEEDCOUNTER_data_BUS_wire;
wire 	SPEEDCOMPARATOR_2_STATEMACHINEPOINT_T0_wire;



wire 	STATEMACHINEPOINT_upcount_wire;

wire	STATEMACHINEPOINT_POINTselection_wire;
wire    [DATAWIDTH_BUS-1:0] MULTIPLEXOR_PointSelection_wire;

wire	STATEMACHINEPOINT_clear_wire;
wire	STATEMACHINEPOINT_load_Point_wire;

wire	STATEMACHINEPOINT_shiftselection_wire;

wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data7_Out;  
wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data6_Out;
wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data5_Out;
wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data4_Out;
wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data3_Out;
wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data2_Out;
wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data1_Out;
wire [DATAWIDTH_BUS-1:0] RegPOINTMATRIX_data0_Out;



















 

















wire [DATAWIDTH_BUS-1:0] regGAME_data7_wire;
wire [DATAWIDTH_BUS-1:0] regGAME_data6_wire;
wire [DATAWIDTH_BUS-1:0] regGAME_data5_wire;
wire [DATAWIDTH_BUS-1:0] regGAME_data4_wire;
wire [DATAWIDTH_BUS-1:0] regGAME_data3_wire;
wire [DATAWIDTH_BUS-1:0] regGAME_data2_wire;
wire [DATAWIDTH_BUS-1:0] regGAME_data1_wire;
wire [DATAWIDTH_BUS-1:0] regGAME_data0_wire;

wire 	[7:0] data_max;
wire 	[2:0] add;


wire [DATAWIDTH_BUS-1:0] upCOUNTER_2_BIN2BCD1_data_BUS_wire;
wire [DISPLAY_DATAWIDTH-1:0] BIN2BCD1_2_SEVENSEG1_data_BUS_wire;








SC_DEBOUNCE1 SC_DEBOUNCE1_u0 (

	.SC_DEBOUNCE1_button_Out(BB_SYSTEM_startButton_InLow_wire),
	.SC_DEBOUNCE1_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_DEBOUNCE1_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_DEBOUNCE1_button_In(~BB_SYSTEM_startButton_InLow)
);
SC_DEBOUNCE1 SC_DEBOUNCE1_u1 (

	.SC_DEBOUNCE1_button_Out(BB_SYSTEM_leftButton_InLow_wire),
	.SC_DEBOUNCE1_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_DEBOUNCE1_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_DEBOUNCE1_button_In(~BB_SYSTEM_leftButton_InLow)
);
SC_DEBOUNCE1 SC_DEBOUNCE1_u2 (

	.SC_DEBOUNCE1_button_Out(BB_SYSTEM_rightButton_InLow_wire),
	.SC_DEBOUNCE1_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_DEBOUNCE1_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_DEBOUNCE1_button_In(~BB_SYSTEM_rightButton_InLow)
);










CC_MUX21 #(.MUX21_DATAWIDTH(DATAWIDTH_BUS)) CC_MUX21_u0 (

	.CC_MUX21_z_Out(MULTIPLEXOR_PointSelection_wire), 
	.CC_MUX21_select_InBUS(STATEMACHINEPOINT_POINTselection_wire),
	.CC_MUX21_data1_InBUS(DATA_FIXED_INITREGPOINT_0),
	.CC_MUX21_data2_InBUS(DATA_FIXED_INITREGPOINT_7)
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_7)) SC_RegPOINTTYPE_u7 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data7_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS( MULTIPLEXOR_PointSelection_wire )
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_6)) SC_RegPOINTTYPE_u6 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data6_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS(RegPOINTTYPE_2_POINTMATRIX_data7_Out)
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_5)) SC_RegPOINTTYPE_u5 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data5_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS(RegPOINTTYPE_2_POINTMATRIX_data6_Out)
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_4)) SC_RegPOINTTYPE_u4 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data4_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS(RegPOINTTYPE_2_POINTMATRIX_data5_Out)
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_3)) SC_RegPOINTTYPE_u3 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data3_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS(POINTMATRIX_data4_Out)
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_2)) SC_RegPOINTTYPE_u2 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data2_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS(POINTMATRIX_data3_Out)
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_1)) SC_RegPOINTTYPE_u1 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data1_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS(POINTMATRIX_data2_Out)
);
SC_RegPOINTTYPE #(.RegPOINTTYPE_DATAWIDTH(DATAWIDTH_BUS), .DATA_FIXED_INITREGPOINT(DATA_FIXED_INITREGPOINT_0)) SC_RegPOINTTYPE_u0 (

	.SC_RegPOINTTYPE_data_OutBUS(POINTMATRIX_data0_Out),
	.SC_RegPOINTTYPE_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_RegPOINTTYPE_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_RegPOINTTYPE_clear_InLow(STATEMACHINEPOINT_clear_wire),
	.SC_RegPOINTTYPE_load0_InLow(STATEMACHINEPOINT_load_Point_wire),
	.SC_RegPOINTTYPE_shiftselection_In(STATEMACHINEPOINT_shiftselection_wire),
	.SC_RegPOINTTYPE_data0_InBUS(POINTMATRIX_data1_Out)
);

SC_STATEMACHINEPOINT SC_STATEMACHINEPOINT_u0 (

	.SC_STATEMACHINEPOINT_clear_OutLow(STATEMACHINEPOINT_clear_wire), 
	.SC_STATEMACHINEPOINT_load0_OutLow(STATEMACHINEPOINT_load_Point_wire), 
	.SC_STATEMACHINEPOINT_shiftselection_Out(STATEMACHINEPOINT_shiftselection_wire),
	.SC_STATEMACHINEPOINT_CLOCK_50(BB_SYSTEM_CLOCK_50),
	.SC_STATEMACHINEPOINT_RESET_InHigh(BB_SYSTEM_RESET_InHigh),
	.SC_STATEMACHINEPOINT_startButton_InLow(BB_SYSTEM_startButton_InLow_wire), 
	.SC_STATEMACHINEPOINT_leftButton_InLow(BB_SYSTEM_leftButton_InLow_wire), 
	.SC_STATEMACHINEPOINT_rightButton_InLow(BB_SYSTEM_rightButton_InLow_wire),
	.SC_STATEMACHINEPOINT_T0_InLow(SPEEDCOMPARATOR_2_STATEMACHINEBACKG_T0_wire)
);





assign regGAME_data0_wire = DATA_FIXED_INITREGPOINT_0;
assign regGAME_data1_wire = DATA_FIXED_INITREGPOINT_1;
assign regGAME_data2_wire = DATA_FIXED_INITREGPOINT_2;
assign regGAME_data3_wire = DATA_FIXED_INITREGPOINT_3;
assign regGAME_data4_wire = DATA_FIXED_INITREGPOINT_4;
assign regGAME_data5_wire = DATA_FIXED_INITREGPOINT_5;
assign regGAME_data6_wire = DATA_FIXED_INITREGPOINT_6;
assign regGAME_data7_wire = DATA_FIXED_INITREGPOINT_7;

assign data_max =(add==3'b000)?{regGAME_data0_wire[7],regGAME_data1_wire[7],regGAME_data2_wire[7],regGAME_data3_wire[7],regGAME_data4_wire[7],regGAME_data5_wire[7],regGAME_data6_wire[7],regGAME_data7_wire[7]}:
	       (add==3'b001)?{regGAME_data0_wire[6],regGAME_data1_wire[6],regGAME_data2_wire[6],regGAME_data3_wire[6],regGAME_data4_wire[6],regGAME_data5_wire[6],regGAME_data6_wire[6],regGAME_data7_wire[6]}:
	       (add==3'b010)?{regGAME_data0_wire[5],regGAME_data1_wire[5],regGAME_data2_wire[5],regGAME_data3_wire[5],regGAME_data4_wire[5],regGAME_data5_wire[5],regGAME_data6_wire[5],regGAME_data7_wire[5]}:
	       (add==3'b011)?{regGAME_data0_wire[4],regGAME_data1_wire[4],regGAME_data2_wire[4],regGAME_data3_wire[4],regGAME_data4_wire[4],regGAME_data5_wire[4],regGAME_data6_wire[4],regGAME_data7_wire[4]}:
	       (add==3'b100)?{regGAME_data0_wire[3],regGAME_data1_wire[3],regGAME_data2_wire[3],regGAME_data3_wire[3],regGAME_data4_wire[3],regGAME_data5_wire[3],regGAME_data6_wire[3],regGAME_data7_wire[3]}:
	       (add==3'b101)?{regGAME_data0_wire[2],regGAME_data1_wire[2],regGAME_data2_wire[2],regGAME_data3_wire[2],regGAME_data4_wire[2],regGAME_data5_wire[2],regGAME_data6_wire[2],regGAME_data7_wire[2]}:
	       (add==3'b110)?{regGAME_data0_wire[1],regGAME_data1_wire[1],regGAME_data2_wire[1],regGAME_data3_wire[1],regGAME_data4_wire[1],regGAME_data5_wire[1],regGAME_data6_wire[1],regGAME_data7_wire[1]}:
						{regGAME_data0_wire[0],regGAME_data1_wire[0],regGAME_data2_wire[0],regGAME_data3_wire[0],regGAME_data4_wire[0],regGAME_data5_wire[0],regGAME_data6_wire[0],regGAME_data7_wire[0]};
									 
matrix_ctrl matrix_ctrl_unit_0( 
.max7219_din(BB_SYSTEM_max7219DIN_Out),
.max7219_ncs(BB_SYSTEM_max7219NCS_Out),
.max7219_clk(BB_SYSTEM_max7219CLK_Out),
.disp_data(data_max), 
.disp_addr(add),
.intensity(4'hA),
.clk(BB_SYSTEM_CLOCK_50),
.reset(BB_SYSTEM_RESET_InHigh)
 ); 
 




assign BB_SYSTEM_startButton_Out = BB_SYSTEM_startButton_InLow_cwire;
assign BB_SYSTEM_leftButton_Out = BB_SYSTEM_leftButton_InLow_cwire;
assign BB_SYSTEM_rightButton_Out = BB_SYSTEM_rightButton_InLow_cwire;

assign BB_SYSTEM_TEST0 = BB_SYSTEM_startButton_InLow_cwire;
assign BB_SYSTEM_TEST1 = BB_SYSTEM_startButton_InLow_cwire;
assign BB_SYSTEM_TEST2 = BB_SYSTEM_startButton_InLow_cwire;



endmodule