% subckt of the dspinfpga JUNE 12'00 % % The serial port is used to write data files to the Dual Port Ram, The Dual Port is seen as Read Only Memory by the DSP. % SUBDESIGN SERIAL (SCK, % serial port clock % DL, % serial data D15 to D0 % DH, % serial data D31 to D16 % AD, % serial address D14 TO D0 % FR % serial frame bit % :INPUT; D[31..0], % data to the DP % A[15..0], % address to the DP % WEN % write enable to the DP % :OUTPUT;) VARIABLE SRL[15..0] :DFF ; SRH[15..0] :DFF ; SRA[15..0] :DFF ; %% SRF[16..0] :DFF ; BEGIN SRL[].CLK = SCK ; SRH[].CLK = SCK ; SRA[].CLK = SCK ; SRF[].CLK = SCK ; SRL0.D = DL ; SRH0.D = DH ; SRA0.D = AD ; SRF0.D = FR ; SRL[15..1].D = SRL[14..0] ; SRH[15..1].D = SRH[14..0] ; SRA[15..1].D = SRA[14..0] ; %% SRF[16..1].D = SRF[15..0] ; D[15..0] = SRL[] ; D[31..16] = SRH[] ; A[15..0] = SRA[] ; %% WEN = SRF16 ; END ;