当前位置:网站首页>Verilog daily question (VL2 asynchronous reset Series T trigger - Niuke network)
Verilog daily question (VL2 asynchronous reset Series T trigger - Niuke network)
2022-07-28 17:28:00 【Don't make any more errors】
subject : Realize two series asynchronous reset T trigger , The specific structure and waveform diagram are as follows :

This question is relatively simple , Just know T The characteristics of triggers are easier to solve . namely : Input is 1 Time value flip (0 become 1\1 become 0), Input is 0 Time does not change .
Two in series are set as two always Block is OK , The code is as follows
`timescale 1ns/1ns
module Tff_2 (
input wire data, clk, rst,
output reg q
);
//*************code***********//
reg data1;
always @(posedge clk,negedge rst)begin
if(!rst) data1<=0;
else if(data) data1<=~data1;
else data1<=data1;
end
always @(posedge clk,negedge rst)begin
if(!rst) q<=0;
else if(data1) q<=~q;
else q<=q;
end
//*************code***********//
endmoduleReview by the way T Trigger details Structure and characteristics :
logic function : Control signals T=1 when , Flip ;T=0 when , keep . The characteristic table and characteristic equation are as follows :
Characteristic table

Characteristic equation :

Its logical symbol graphics are as follows :

in fact ,JK The two inputs of the trigger are connected together as T End can form T trigger .

边栏推荐
- Classroom attendance system based on QT design (using RDS for MySQL cloud database)
- 【impala】【报错解决】 Impala cannot read or execute the parent directory of dfs.domain.socket.path的解决方法
- Function接口之andThen
- The 2021 ICPC ASIA Taipei Regional programming contest L. leadfoot (combinatorics /2-adic assignment function +kummer theorem)
- Valarray Library Learning
- 使用阿里云免费的SSL证书
- C # traversal set
- Learn about service discovery in kubernetes
- 线性代数及矩阵论(八)
- Linear algebra and matrix theory (7)
猜你喜欢

Verilog 每日一题(VL26 简易秒表)

Verilog daily question (vl5 signal generator)

The practice of the beego framework of goweb development: Section II project initialization configuration

Goweb开发之Beego框架实战:第四节 数据库配置及连接

Verilog daily question (simple implementation of VL30 RAM)

Verilog 每日一题(VL6 数据串转并电路)

QR code generation of wechat applet with parameters

Classroom attendance system based on QT design (using RDS for MySQL cloud database)

LNMP源码编译安装

连接设计与测试平台——SystemVerilog 接口知识点总结
随机推荐
使用阿里云免费的SSL证书
GEAR: Graph-based Evidence Aggregating and Reasoning for Fact Verification
Shell脚本之AWK
Shell编程之Sed
WPF command button transparent style
C#遍历集合
The 2021 ICPC ASIA Taipei Regional programming contest L. leadfoot (combinatorics /2-adic assignment function +kummer theorem)
Solve the problem of exclusive SQL Server database
Selection and application of capacitor in high speed circuit -- detailed explanation
Create a custom paging control
Use Alibaba cloud's free SSL certificate
C# 导入Excel文件数据的几种方法
The actual combat of the beego framework of goweb development: Section III program execution process analysis
高速电路中电阻的选择
List of supplementary questions
部分情况下Error:(xx, xx) Failed to resolve: xxxxxx解决。
Goweb开发之Beego框架实战:第四节 数据库配置及连接
【CDH】通过 ClouderaManager 配置CDH组件用 prometheus 监控采集JMX信息
The practice of beego framework developed by goweb: Section 4 database configuration and connection
Goweb开发之Iris框架实战:项目总结与回顾