当前位置:网站首页>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 .
边栏推荐
- Kubernetes deployment dashboard (Web UI management interface)
- 毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?
- 机器学习8-人工神经网络
- 可转债策略之---(摊饼玩法,溢价玩法,强赎玩法,下修玩法,双低玩法)
- 6.25AtCoderABC257E - Addition and Multiplication 2题解
- 0基础自学STM32(野火)——寄存器点亮LED
- Possible reasons for not triggering onreachbutton
- 广发易淘金和东方财富哪个更好,更安全一些
- 有遇到用flink-cdc采集MySQL-RDS的时候,datetime类型的字段,采集过来后和源表
- 关于KALI使用xshell连接
猜你喜欢

High landing pressure of "authorization and consent"? Privacy computing provides a possible compliance "technical solution"

@Component与@Configuration区别

A user level thread library based on C language
![[R language data science]: Text Mining (taking Trump's tweet data as an example)](/img/4f/09b9885915bee50fb40976a5002730.png)
[R language data science]: Text Mining (taking Trump's tweet data as an example)

0基础自学STM32(野火)——使用寄存器点亮LED——GPIO功能框图讲解

机器学习7-支持向量机

0基础自学STM32(野火)——寄存器点亮LED

自旋电子学笔记-张曙丰

【现代信号处理第六次作业】

从Mpx资源构建优化看splitChunks代码分割
随机推荐
毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?
机器学习7-支持向量机
使用kalibr标定工具进行单目相机和双目相机的标定
机器学习8-人工神经网络
Inheritablethreadlocal resolves message loss during message transmission between parent and child threads in the thread pool
固定资产管理系统让企业动态掌握资产情况
External automatic (PLC start robot)
What is the follow-up plan of infotnews | meta in the metauniverse?
Calibration of binocular camera based on OpenCV
在线文本数字识别列表求和工具
Étalonnage de la caméra monoculaire et de la caméra binoculaire à l'aide de l'outil d'étalonnage kalibr
Leetcode 984. 不含 AAA 或 BBB 的字符串(网友思路)
Sectigo ov pan domain name certificate is 1590 yuan a year easy to use
NVIDIA安装最新显卡驱动
SpingMVC请求和响应
Tencent cloud released the upgraded version of CDW Clickhouse to provide a fast experience for massive data real-time analysis scenarios
Subgraphs in slam
windows平台下的mysql启动等基本操作
Development of freedom free agreement pledge mining system
LSB hidden items of stream carrier based on assembly implementation