Jun 29, 2006 #1 D draz Newbie level 6 Joined Jan 16, 2006 Messages 11 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location bangalore Activity points 1,408 Hi Can someone please help me with the VHDL code for BPSK modulator/Demodulator ? I need this urgently for my Project Thanks
Hi Can someone please help me with the VHDL code for BPSK modulator/Demodulator ? I need this urgently for my Project Thanks
Jun 29, 2006 #2 R ravurig Junior Member level 2 Joined Jun 21, 2004 Messages 23 Helped 2 Reputation 4 Reaction score 1 Trophy points 1,283 Activity points 129 vhdl code for bpsk try this verilog code Modulator:- always @(MOD_IN) begin MOD_OUT_Q = 'd0; if(MOD_IN) MOD_OUT_I = 'h3; (-1) else MOD_OUT_I = 'h1; (+1) end De_Mod:- always @(MOD_OUT_I or MOD_OUT_Q) begin case({MOD_OUT_I,MOD_OUT_Q}) 4'b1100: DEMOD_OUT = 1; 4'b0100: DEMOD_OUT = 0; endcase end
vhdl code for bpsk try this verilog code Modulator:- always @(MOD_IN) begin MOD_OUT_Q = 'd0; if(MOD_IN) MOD_OUT_I = 'h3; (-1) else MOD_OUT_I = 'h1; (+1) end De_Mod:- always @(MOD_OUT_I or MOD_OUT_Q) begin case({MOD_OUT_I,MOD_OUT_Q}) 4'b1100: DEMOD_OUT = 1; 4'b0100: DEMOD_OUT = 0; endcase end