产生数据流的代码

模板

 

重新修改了下

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. luogu P2520 [HAOI2011]向量

    传送门 一堆人说数论只会gcd,我连gcd都不会,菜死算了qwq Orzyyb 这题欺负我数学不好qwq 首先可以发现实际上有如下操作:x或y±2a,x或y±2b,x+a y+b,x+b y+a(后面 ...

  2. 2017CCPC秦皇岛 G题Numbers&&ZOJ3987【大数】

    题意: 给出一个数n,现在要将它分为m个数,这m个数相加起来必须等于n,并且要使得这m个数的或值最小. 思路: 从二进制的角度分析,如果这m个数中有一个数某一位为1,那么最后或起来这一位肯定是为1的, ...

  3. 通过dbutil操作数据库

    dbutil操作数据库工具类 步骤 导入jar包 c3p0-0.9.1.2.jar         commons-dbutils-1.6.jar         mysql-connector-ja ...

  4. python,获取用户输入,并且将输入的内容写到.txt

    该功能缺点是必须保证该文件不存在的情况才会成功 f=open('E:/mywork/保存文件.txt','x') def userwrite(code): if code=='w': f.close( ...

  5. 修改/dev/shm大小 tmps

    /dev/shm  在oracle开启AMM时发现/dev/shm下的空间不够用 WARNING: You are trying to use the MEMORY_TARGET feature. T ...

  6. C++ std::pair的用法

    1 pair的应用 pair是将2个数据组合成一个数据,当需要这样的需求时就可以使用pair,如stl中的map就是将key和value放在一起来保存.另一个应用是,当一个函数需要返回2个数据的时候, ...

  7. AI 玩法整理

    随着信息技术的火热发展,人工智能已经成为IT全行业的风口爆发点,既然风口来了,作为技术人人员也都毫不犹豫的分一杯羹,怎么玩呢? 接下来的博客就会带领大家一起玩玩AI 认识AI--略,如果有需要的可以再 ...

  8. 3. Python 字典 常用办法总结

    Python字典客储存任意类型的对象,如字符串.数字.元祖.列表.字典.bool等. 优点:取值方便,速度快 1.创建字典 字典由键(key)和对应值(value)成对组成. 字典也被称作关联数组或哈 ...

  9. Euclideanloss_layer层解析

    这里说一下euclidean_loss_layer.cpp关于该欧式loss层的解析,代码如下: #include <vector> #include "caffe/layers ...

  10. FAT文件系统规范v1.03学习笔记---4.文件和目录数据区之长目录项

    1.前言 本文主要是对Microsoft Extensible Firmware Initiative FAT32 File System Specification中文翻译版的学习笔记. 每个FAT ...