加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fec.v 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
Cody Schafer 提交于 2012-05-07 12:42 . blah
/* NOTE: unfinished code */
/* FEC is composed of 2 portions, reed solomon and
* convolution code, applied in that order. On
* non-subchannelized data, RS is bypassed */
`include "rs.v"
`include "cc.v"
module fec
#(
parameter w = 1
)(
input reset, clk,
input [w-1:0] in_bits,
input in_valid,
output [w-1:0] out_bits,
output out_valid,
/* config */
input enable_rs,
input [1:0] cc_rate
);
/** RS **/
reg [w-1:0] rs_in_bits;
reg rs_in_valid;
wire [w-1:0] rs_out_bits;
wire rs_out_valid;
rs #(.w(w)) rs1 (reset, clk,
rs_in_bits,
rs_in_valid,
rs_out_bits,
rs_out_valid
);
/** **/
/** CC **/
reg [w-1:0] cc_in_bits;
reg cc_in_valid;
wire [w-1:0] cc_out_bits;
wire cc_out_valid;
cc #(.w(w)) cc1 (reset, clk,
cc_in_bits,
cc_in_valid,
cc_out_bits,
cc_out_valid,
cc_rate
);
/** **/
always @(posedge clk or posedge reset) begin
if (reset) begin
end else begin
end
end
always @(negedge clk or posedge reset) begin
if (reset) begin
end else begin
end
end
endmodule
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化