当前位置:网站首页>sequential detector
sequential detector
2022-06-29 17:17:00 【Long water and sky】
This is used here “11010” Sequence detector as an example .
The sequence detector is to detect a specified sequence from the digital code stream , When a sequence appears at the input 11010 when , Output is 1, Otherwise, the output is 0. Repeat sequences are not considered here , That is, the sequence detection will be restarted after the specified sequence appears , No longer consider previous data .
The state transition diagram of the sequence detector is shown in the following figure :

The code is as follows :
module seqdet(D_out, D_in, rst_n, clk);
parameter IDLE = 3'b0, A = 3'b1, B = 3'b2, C = 3'b3, D = 3'b4, E = 3'b5;
output D_out;
input D_in, rst_n, clk;
reg[2:0]state, next_state;
wire D_out;
assign D_out = (state == E)?1:0;
[email protected](state or D_in)
case(state)
IDLE:if(D_in)
next_state = A;
else
next_state = IDLE;
A:if(D_in)
next_state = B;
else
next_state = IDLE;
B:if(D_in)
next_state = B;
else
next_state = C;
C:if(D_in)
next_state = D;
else
next_state = IDLE;
D:if(D_in)
next_state = B;
else
next_state = E;
E:if(D_in)
next_state = IDLE;
else
next_state = A;
default: next_state = IDLE;
endcase
[email protected](posedge clk)
state <= next_state;
endmodule
You can see , When they arrive in E In the state of ,11010 Sequence detection completed , meanwhile D_out Output 1. Next, if 1 Go to A The state continues with the next sequence of detection , If... Is detected 0 Then return to IDLE Status waiting .
边栏推荐
- 知道创宇为能源行业资产管理助力,入选工信部2021物联网示范项目
- epoll分析
- How to establish and use KUKA subroutines / functions
- About Kali using xshell connection
- Calibration of binocular camera based on OpenCV
- C语言练习----指针字符串、链表
- Naacl 2022 | distillation of machinetranslation SOTA model
- Which is better and safer, GF e-gold or Dongfang fortune
- 开源仓库贡献 —— 提交 PR
- 使用kalibr标定工具进行单目相机和双目相机的标定
猜你喜欢

Online sql to CSV tool

SpingMVC请求和响应

Inheritablethreadlocal resolves message loss during message transmission between parent and child threads in the thread pool

我的远程办公初体验 | 社区征文

Word2vec vector model of Wiki Chinese corpus based on deep learning

知道创宇为能源行业资产管理助力,入选工信部2021物联网示范项目

A user level thread library based on C language

@Component与@Configuration区别

使用kalibr标定工具进行单目相机和双目相机的标定

Calibration of monocular camera and binocular camera with kalibr calibration tool
随机推荐
High landing pressure of "authorization and consent"? Privacy computing provides a possible compliance "technical solution"
KUKA robot external axis configuration what you must know
Why is informatization ≠ digitalization? Finally someone made it clear
在线SQL转CSV工具
LSB hidden items of stream carrier based on assembly implementation
epoll分析
In depth analysis of Monai (I) data and transforms
How to use interrupt
2020版KALI安装教程
Kotlin basic grammar
[R language data science]: Text Mining (taking Trump's tweet data as an example)
Help MySQL data analysis with databend
Issue 42: is it necessary for MySQL to have multiple column partitions
controller、service、dao之间的关系
关于Go中两个模块互相调用的场景解决方案
KUKA机器人外部轴配置你一定要知道的那些知识
SpingMVC请求和响应
What are the project management systems suitable for small and medium-sized enterprises?
Calibration of binocular camera based on OpenCV
从居家办公中感悟适配器模式 | 社区征文