随笔 - 284, 文章 - 0, 评论 - 60, 阅读 - 53万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

数据组合---Verilog

Posted on   沉默改良者  阅读(675)  评论(0编辑  收藏  举报

数据组合---Verilog

复制代码
 1 module Data_Combination(
 2 
 3     input          wire                  Clk,
 4     input          wire                  Rst_n,
 5 
 6     input          wire                  ShortTrainingEnable,
 7     input          wire    [7:0]         ShortTrainingRe,
 8     input          wire    [7:0]         ShortTrainingIm,
 9 
10     input          wire                  otherFOEDataEnable,
11     input          wire    [7:0]         otherFOEDataRe,
12     input          wire    [7:0]         otherFOEDataIm,
13 
14     output         reg                   FOEDataOutEnable,
15     output         reg     [7:0]         FOEDataOutRe,
16     output         reg     [7:0]         FOEDataOutIm);
17 
18 
19 always@(posedge Clk or negedge Rst_n)
20 begin
21     if (!Rst_n)
22     begin
23         FOEDataOutEnable <= 0;
24         FOEDataOutRe <= 8'b00000000;
25         FOEDataOutIm <= 8'b00000000;
26     end
27     else
28     begin
29         if (ShortTrainingEnable)
30         begin
31               /*延时后的短训练序列有效      ******///////
32             FOEDataOutEnable <= 1;
33             FOEDataOutRe <= ShortTrainingRe;
34             FOEDataOutIm <= ShortTrainingIm;
35         end
36         else
37         begin
38               if (otherFOEDataEnable)
39             begin
40                    //长训练和数据序列校正后有效    ******////////             
41                 FOEDataOutEnable <= 1;
42                 FOEDataOutRe <= otherFOEDataRe;
43                 FOEDataOutIm <= otherFOEDataIm;
44             end
45             else
46             begin
47                 FOEDataOutEnable <= 0;
48                 FOEDataOutRe <= 8'b00000000;
49                 FOEDataOutIm <= 8'b00000000;
50             end
51         end
52     end
53 end
54 
55 
56 endmodule
复制代码

 

编辑推荐:
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
历史上的今天:
2018-06-29 阅读 Device Driver Programmer Guide 笔记
2017-06-29 Xilinx AXI总线学习(1)
点击右上角即可分享
微信分享提示