## 1 Introduction
The proposed DEC TDMA shows an improvement in delay performance with the implementation of dynamic bandwidth allocation while providing data slots in TDMA [8]. A promising multiplexing technique to achieve high-speed connectivity with large bandwidth is optical code-division multiple access (OCDMA), which has received increasing attention in optical communication due to its asynchronous transmission, flexibility, security, and scalability. Among OCDMA technologies, spectral amplitude coding (SAC) has been proposed to minimize the impact of multi-user interference and suppress the effect of phase-induced intensity noise (PIN) with fixed in-phase cross-correlation [9]. In 2018, [PERSON] et al. utilized a single photodiode (SPD) detection technique to overcome both PIN and multiple-access interference (MAI) to increase the performance of SAC-OCDMA [10]. [PERSON] et al. proposed a hybrid system that combines the conventional SAC-OCDMA and orthogonal frequency division multiplexing (OFDM) to improve the performance of SAC-OCDMA at high data rates and propagate with high fidelity over fiber links [11]. In the demodulation scheme of optical signals, OCDMA can be divided into two categories: non-coherent and coherent OCDMA. The non-coherent OCDMA system uses light intensity to encode optical signals. A commonly used encoding method is unipolar encoding, which has the characteristics of simple design and low cost; however, this scheme is only suitable for low data rates such as voice data. Meanwhile, coherent systems encode the input light phase using a matching filter to change the phase of an optical signal. The autocorrelation intensity peak in the coherent system after the square-law detection with the photodetector is superior to the non-coherent scheme, and demonstrates the excellent correlation properties of coherent OCDMA. [PERSON] et al. [12] proposed a power-cubic nonlinear preprocessor for a spectral-phase-encoded ultrashort light pulse optical code-division multiple-access system. The numerical results proved the superiority of the proposed system in improving the coherent SAC-OCDMA system performance, especially in high-power scenarios in which MAI becomes the dominant noise. Bipolar coding in a coherent system is advantageous in terms of spectral efficiency [13]. Therefore, bipolar coding is suitable for high-speed data transmission and real-time applications. The performance of bipolar encoding is better than that of unipolar encoding [14]. Bipolar codes can also be implemented in the non-coherent OCDMA system to stabilize the decision threshold for the improvement of bit error rate (BER) performance [15]. Several methods have been investigated to improve the performance of bipolar encoding; one of these uses a two-code keying scheme that exhibits an enhanced BER performance compared to the existing unipolar encoding with a direct detection technique [16]. Regarding security, in 2018, [PERSON] et al. proposed a novel bipolar code based on a double-weight code pattern with a reconfigurable encoder design. Code reconfiguration at the transmitting end provides code security against an eavesdropper at the transmitter and receiver ends [17]. In 2020, [PERSON] et al. proposed a novel bipolar double-weight coding scheme in the spectral domain to make the system more secure against the eavesdropping situation [18]. For transmission over an atmospheric turbulence channel, the polarization state of a light beam is the most stable parameter compared to the amplitude and phase [19]. The polarization domain has the potential to improve both system capacity and spectral efficiency (SE) by utilizing the state of polarization (SOP) of light [20]. A spectral-polarization coding OCDMA configuration effectively suppresses PIN. Our previous work [21] used horizontal and vertical polarization states to generate bipolar data.