看板 Electronics 關於我們 聯絡資訊
現在小弟想要寫BPSK一個小程式~ 輸入端是0.1 輸出是+1.-1 現在1->(+1)沒問題 可是不知道要怎麼要讓程式把0->(-1) entity bpsk is port ( clk : IN STD_LOGIC; reset : IN STD_LOGIC; BPSK_IN : IN STD_LOGIC; Modulation_Iaxis_out : OUT STD_LOGIC; Modulation_Qaxis_out : OUT STD_LOGIC ); end bpsk; architecture Behavioral of bpsk is begin process (clk,reset) begin if (reset = '0') then Modulation_Iaxis_out <= '0' ; Modulation_Qaxis_out <= '0' ; elsif ( reset = '1' and clk 'event and clk = '0') then Modulation_Iaxis_out <= BPSK_IN; Modulation_Qaxis_out<= '0'; end if; end process; end Behavioral; 這是我自己寫的CODE 請版上的高手幫幫忙吧 謝謝喔 補充一點 因為我是用MATLAB來跑XILINX的BLOCK 所以要設 I 跟 Q 軸 不然後面接的SCOPE沒辦法跑 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.126.131.62
mouein:先弄清楚浮點數跟有號數表示方式! K一下計算機組織吧! 11/20 22:22