当前位置:网站首页>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 .

边栏推荐
- Mysql database addition, deletion, modification and query (detailed explanation of basic operation commands)
- Pytorch Foundation: similarities and differences between torch.mul, torch.mm and torch.matmul
- The practice of beego framework in goweb development: Section I Introduction to beego framework
- 线性代数及矩阵论(十)
- Soft exam review summary
- C # traversal set
- Verilog 每日一题 (VL30 RAM的简单实现)
- The practice of beego framework developed by goweb: Section 4 database configuration and connection
- Andthen of function interface
- Valarray Library Learning
猜你喜欢

高速电路设计实践——概述

在android开发过程中遇到.sqlite文件处理

微信小程序现金红包返回“IP地址非你在商户平台设置的可用IP地址”错误终极解决方法

Steps to configure V530 switch

Selection and application of capacitor in high speed circuit -- detailed explanation

Verilog 每日一题(VL14 自动贩售机1--FSM常见题型)

Application system log structure of elastic stack

Shell编程之Sed

Selection and application of inductors in high speed circuits

Goweb开发之Beego框架实战:第四节 数据库配置及连接
随机推荐
Cf/atc/lc topic score website
使用阿里云免费的SSL证书
Goweb开发之Iris框架实战:项目总结与回顾
Solve the problem of exclusive SQL Server database
Several methods of importing excel file data by C #
valarray数值库学习
C # traversal set
SNAT、DNAT 防火墙规则的备份和还原
Codeforces round 768 (Div. 2) e.paint the middle (greedy / interval relationship processing)
Leetcode 2022.04.10 China Merchants Bank special competition D. store promotion (DP)
The practice of the beego framework of goweb development: Section II project initialization configuration
Encountered.Sqlite file processing during Android Development
The practice of the beego framework for goweb development: Section V project construction and user registration
22年多校第三场(F的证明
【ansible】ansible shell 执行远程命令遇到awk 中$符号的问题
Basic principle of asynchronous FIFO (simple implementation based on Verilog)
net框架
全链路灰度在数据库上我们是怎么做的?
Round 1A 2022 - Code jam 2022 c.weightlifting (interval DP)
What does the service grid that has been popular for two years bring to microservices? (Reprinted)