Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to multiply a sine wave generated with a single bit line in QPSK modulator??

Status
Not open for further replies.

manubangalore88@gmail.com

Newbie level 1
Newbie level 1
Joined
Jun 19, 2014
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
0
Phase-shift_keying


The output of NRZ encoder is 1 bit signal. The sine wave generated using the program below is 8 bits.
My question is how to multiply a 1 bit signal with an 8 bit one and generate a QPSK modulated wave??

module Sine_Cos_Waves( clk, reset, sine, cos);
input clk, reset;
output [7:0] sine,cos;
reg [7:0] sine_r, cos_r;
assign sine = sine_r + {cos_r[7], cos_r[7], cos_r[7], cos_r[7:3]};
assign cos = cos_r - {sine[7], sine[7], sine[7], sine[7:3]};
always@(posedge clk or negedge reset)
begin
if (!reset)
begin
sine_r <= 0;
cos_r <= 120;
end
else
begin
sine_r <= sine;
cos_r <= cos;
end
end
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top