产生数据流的代码

模板

 

重新修改了下

reg [:]axis_data_cnt='d0;
reg [:]axis_data_frame_cnt='d0;
reg [:]delay_cnt='d0; initial begin
# clk=;
forever begin
# clk=~clk;
end
end
initial
begin
# rst_n=;
# rst_n=;
# rst_n=;
# rst_n=;
end
always @(posedge clk)
begin
if(!rst_n)
begin
s_axis_data<='d0;
s_axis_valid<=;
s_axis_last<=;
axis_data_frame_cnt<='d0;
delay_cnt<='d0;
axis_data_cnt<='d0;
end
else
begin
if()
begin
if(axis_data_frame_cnt<='d51200)//22*10 10frame
begin
axis_data_frame_cnt<=axis_data_frame_cnt+;
if(axis_data_cnt<'d510)
begin
if(delay_cnt=='d7)
begin
delay_cnt<='d0;
s_axis_data<=s_axis_data+;
axis_data_cnt<=axis_data_cnt+;
s_axis_valid<=;
s_axis_last<=;
end
else
begin
delay_cnt<=delay_cnt+;
s_axis_data<=s_axis_data;
axis_data_cnt<=axis_data_cnt;
s_axis_valid<=;
s_axis_last<=;
end
end
else if(axis_data_cnt =='d510)
begin
if(delay_cnt=='d7)
begin
delay_cnt<='d0;
s_axis_data<=s_axis_data+;
s_axis_valid<=;
s_axis_last<=;
axis_data_cnt<=axis_data_cnt+;
end
else
begin
delay_cnt<=delay_cnt+;
s_axis_data<=s_axis_data;
s_axis_valid<=;
s_axis_last<=;
axis_data_cnt<=axis_data_cnt;
end
end
else if(axis_data_cnt=='d511)
begin
if(delay_cnt=='d7)
begin
delay_cnt<='d0;
s_axis_data<=s_axis_data;
s_axis_valid<='d0;
axis_data_cnt<=axis_data_cnt+;
s_axis_last<=;
end
else
begin
delay_cnt<=delay_cnt+;
s_axis_data<=s_axis_data;
s_axis_valid<='d0;
axis_data_cnt<=axis_data_cnt;
s_axis_last<=;
end
end
else
begin
delay_cnt<='d0;
s_axis_data<=s_axis_data;
s_axis_valid<='d1;
axis_data_cnt<=;
s_axis_last<=;
end
end else
begin
axis_data_frame_cnt<=axis_data_frame_cnt;
s_axis_data<='d1;
s_axis_valid<='d0;
s_axis_last<=;
axis_data_cnt<='d20;
end
end
end
end

axis 数据流的更多相关文章

  1. verilog-产生axis数据流

    首先这是产生aixs数据流的代码 `timescale 1ps/1ps `default_nettype none module axis_switch_0_example_master #( ) ( ...

  2. 一站式学习Wireshark(三):应用Wireshark IO图形工具分析数据流

    基本IO Graphs: IO graphs是一个非常好用的工具.基本的Wireshark IO graph会显示抓包文件中的整体流量情况,通常是以每秒为单位(报文数或字节数).默认X轴时间间隔是1秒 ...

  3. Wireshark(三):应用Wireshark IO图形工具分析数据流

    原文出处: EMC中文支持论坛 基本IO Graphs: IO graphs是一个非常好用的工具.基本的Wireshark IO graph会显示抓包文件中的整体流量情况,通常是以每秒为单位(报文数或 ...

  4. angular2系列教程(九)Jsonp、URLSearchParams、中断选择数据流

    大家好,今天我们要讲的是http模块的第二部分,主要学习ng2中Jsonp.URLSearchParams.observable中断选择数据流的用法. 例子

  5. 《连载 | 物联网框架ServerSuperIO教程》- 10.持续传输大块数据流的两种方式(如:文件)

    1.C#跨平台物联网通讯框架ServerSuperIO(SSIO)介绍 <连载 | 物联网框架ServerSuperIO教程>1.4种通讯模式机制. <连载 | 物联网框架Serve ...

  6. 应用Apache Axis进行Web Service开发

    转自(http://tscjsj.blog.51cto.com/412451/84813) 一.概述 SOAP原意为Simple Object Access Protocol(简单对象访问协议),是一 ...

  7. 有理数的稠密性(The rational points are dense on the number axis.)

    每一个实数都能用有理数去逼近到任意精确的程度,这就是有理数的稠密性.The rational points are dense on the number axis.

  8. [LeetCode] Data Stream as Disjoint Intervals 分离区间的数据流

    Given a data stream input of non-negative integers a1, a2, ..., an, ..., summarize the numbers seen ...

  9. [LeetCode] Find Median from Data Stream 找出数据流的中位数

    Median is the middle value in an ordered integer list. If the size of the list is even, there is no ...

随机推荐

  1. IIS7配置Gzip压缩

    II7中自带了gzip功能,理论上应该比ii6配置起来应该简单一点,但是容易出的问题比较多.有的II7配置web服务器角色的时候可能没有安装启用动态内容压缩,所以这个钩子是灰色的,需要再次安装. 如图 ...

  2. bash 文件名操作 常用方法

    参考链接: http://www.jb51.net/article/51592.htm 查找文件不获取路径: find $1 -name '*.bin' -exec basename {} \;

  3. JDK中Concurrent包介绍及使用(包含atomic包/lock包/并发容器/执行器)

    Java Concurrent并发包概括  https://blog.csdn.net/u012232736/article/details/79919450 Java中的Atomic包使用指南   ...

  4. Java strictfp有什么作用

  5. 为共享服务器配置Oracle数据库

    参考资料 https://docs.oracle.com/cd/E11882_01/server.112/e25494/manproc.htm#ADMIN00502

  6. sorter函数参数设置

    python内置sorted函数排完序生成一个新列表,而列表list.sorted则是直接在原列表上修改 sorted默认排序是正序,即从小到大. 若想倒着排序,则reverse=True 当需要排序 ...

  7. Delaunay triangulation

    1,先花个圆: detail模式执行. #define XY 0x00 #define XZ 0x01 #define YZ 0x02 #define pi 3.1415926 #define clo ...

  8. shell文本左右对齐排版【转】

    文本左右对齐排版 有文本4.txt如下: 111111111111111111111 98912 张三 222222222222222222 150020 李四四 333333333333333333 ...

  9. 新版本微信导致的ios表单bug

    解决方法如下: $(document).delegate('input, textarea, select', 'blur', function(){ setTimeout(function(){ $ ...

  10. python3+selenium框架设计02-自动化测试框架需要什么

    什么是自动化测试框架 自动化测试框架能够提供便利给用户高效完成一些事情,比如,结构清晰开发脚本,多种方式.平台执行脚本,良好的日志和报告去跟踪脚本执行结果. 关于自动化测试框架的定义有很多,在我大致理 ...