FSK调制

2FSK调制的原理就不多说了,直接上电路,当码元为0的时候选择频率f1,当码元为1的时候选择频率f2

module mux_freq
(
input clk,
input rst_n,
input code,
output reg [9:0] freq
);

wire [9:0] f1;
wire [9:0] f2;

assign f1 = 10'b0000_000_000;
assign f2 = 10'b0000_100_001;

always @(posedge clk,negedge rst_n)
if(!rst_n)
freq
<= 10'd0;
else if(!code)
freq
<= f1;
else
freq
<= f2;

endmodule

posted on 2011-03-07 20:24  齐威王  阅读(853)  评论(0编辑  收藏  举报

导航