by se.me.su » Mon Dec 01, 2008 9:31 pm
Hi,
I have a project with pwm and one bit dac. I have found the verilog codes on the website the code is below
module PWM(clk, RxD, PWM_out);
input clk, RxD;
output PWM_out;
wire RxD_data_ready;
wire [7:0] RxD_data;
async_receiver deserialer(.clk(clk), .RxD(RxD), .RxD_data_ready(RxD_data_ready), .RxD_data(RxD_data));
reg [7:0] RxD_data_reg;
always @(posedge clk) if(RxD_data_ready) RxD_data_reg <= RxD_data;
////////////////////////////////////////////////////////////////////////////
reg [8:0] PWM_accumulator;
always @(posedge clk) PWM_accumulator <= PWM_accumulator[7:0] + RxD_data_reg;
assign PWM_out = PWM_accumulator[8];
endmodule
but I can't find the async_receiver deserialer(.clk(clk), .RxD(RxD), .RxD_data_ready(RxD_data_ready), .RxD_data(RxD_data));
module description. is there anyone who helps me to write this module ?
thanks