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

边栏推荐
猜你喜欢
随机推荐
Andthen of function interface
线性代数及矩阵论(十)
格雷码和二进制的转换及典型例题(4bits格雷码计数器)
火了 2 年的服务网格究竟给微服务带来了什么?(转载)
【atlas】atlas 编译报错整理(全)
Algorithm learning: leetcode interview question 09. implement queue with two stacks
Verilog 每日一题(VL8 使用generate…for语句简化代码)
Mysql database addition, deletion, modification and query (detailed explanation of basic operation commands)
Linear algebra and matrix theory (10)
Goweb开发之Beego框架实战:第三节 程序执行流程分析
Goweb开发之Beego框架实战:第五节 项目搭建及注册用户
Verilog daily question (vl14 vending machine 1 -- FSM common question types)
微信小程序现金红包返回“IP地址非你在商户平台设置的可用IP地址”错误终极解决方法
C#遍历集合
Codeworks round 801 (Div. 2) and epic Institute of technology round D. tree queries (tree DP)
2022牛客多校第二场CDE
Goweb开发之Beego框架实战:第二节 项目初始化配置
Wechat applet cash red packet returns the error "the IP address is not the available IP address you set on the merchant platform". The ultimate solution
Microservice Architecture - service registry and service gateway (6.8) (Reprint)
MySQL数据库增删改查(基础操作命令详解)









