= 1'b0;
				end
			else
				begin
					case( r_apb_mst_ns )
						LP_APB_MST_IDLE:
							begin
								r_apb_psel			<= 1'b0;
								r_apb_penable		<= 1'b0;
								r_apb_pwrite		<= 1'b0;
								r_apb_paddr			<= {(p_apb_addr_width){1'b0}};
								r_apb_pwdata		<= {(p_apb_data_width){1'b0}};
								r_curr_state_access	<= 1'b0;
							end
						LP_APB_MST_SETUP:
							begin
								r_apb_psel			<= 1'b1;
								r_apb_penable		<= 1'b0;
								r_apb_pwrite		<= i_config_wrt_rdb;
								r_apb_paddr			<= i_config_addr;
								//if( i_config_wrt_rdb == 1'b1 ) begin
								r_apb_pwdata		<= i_config_data;
								//end else begin
								//r_apb_pwdata		<= r_apb_pwdata;
								//end
								r_curr_state_access	<= 1'b0;
							end
						LP_APB_MST_ACCESS:
							begin
								r_apb_psel			<= 1'b1;
								r_apb_penable		<= 1'b1;
								r_apb_pwrite		<= r_apb_pwrite;
								r_apb_paddr			<= r_apb_paddr;
								r_apb_pwdata		<= r_apb_pwdata;
								r_curr_state_access	<= 1'b1;
							end
						default:
					