当前位置:网站首页>[Verilog quick start of Niuke network question brushing series] ~ asynchronous reset Series T trigger
[Verilog quick start of Niuke network question brushing series] ~ asynchronous reset Series T trigger
2022-06-29 04:34:00 【AI is very good】
Catalog :
0. Preface
Today, I only scratched one question , Why? ? Is it because it's hard ? It doesn't seem to be !!! Because I think the question on niuke.com seems to be full of loopholes , So I came up with a bold idea , That is to write your own design and test files , Use vcs+verdi Co simulation ( Follow the crowd , Ha ha ha ). Let's not say anything else , It took me a day just to pretend , Purring . But now the environment is basically no problem , About the environment , I did it with reference to the boss , See references .
1. Asynchronous reset series T trigger
Click to see the original question
1.1 Title Description
use verilog Realize two asynchronous reset in series T Logic of trigger
1.1.1 Signal schematic diagram

1.1.2 Waveform diagram

1.1.3 Input description
Input signal data, clk, rst
type wire
stay testbench in ,clk For cycles 5ns The clock of ,rst Reset for low level
1.1.4 Output description
The output signal q
type reg
1.2 Their thinking
It should be noted that , What is the effective level of each signal ? We need to make this clear according to the requirements of the topic , What I need to roast about here is , It is a low level reset , It is not officially defined as rst_n(_n The default is that the low level is active , Personal habits ).
Knowledge point 1:T trigger ===> Input is 1, Output flip ; Input is 0, Output hold .
Knowledge point 2: Asynchronous reset means that the reset can be completed without waiting for the clock . meanwhile , And synchronous reset , In general , It is best to use synchronous reset , Sometimes, asynchronous reset cannot be avoided , Because it saves resources , Very provincial , ha-ha , therefore , An asynchronous reset has occurred , Synchronous release operation , extensive use .
1.3 Code implementation
`timescale 1ns/1ns
module Tff_2 (
input wire data, clk, rst,
output reg q
);
//*************code***********//
reg q_reg;
always @ (posedge clk or negedge rst) begin
if(!rst) begin
q_reg <= 1'b0;
end
else begin
if(data) begin
q_reg <= ~q_reg;
end
else begin
q_reg <= q_reg;
end
end
end
always @ (posedge clk or negedge rst) begin
if(!rst) begin
q <= 1'b0;
end
else begin
if(q_reg) begin
q <= ~q;
end
else begin
q <= q;
end
end
end
//*************code***********//
endmodule
1.4 Simulation file
About simulation files , I haven't done it yet , Let me familiarize myself with vcs and verdi A combination of , ha-ha ! Coming soon .
1.5 Simulation waveform
Coming soon !!!
reference
边栏推荐
- [laravel series 8] out of the world of laravel
- What are the circular statements of MySQL
- 直播预约|AWS Data Everywhere 系列活动
- Call snapstateon closed sou from Oracle CDC
- GBASE 8s must be a DBSA、路径更改导致无法启动的解决方法
- 网络设备设置/取消console口登陆单独密码
- Ask a simple question about SQL
- Path and LD_ LIBRARY_ Example of path usage
- [WC2021] 斐波那契——数论、斐波那契数列
- JDBC man Han building code
猜你喜欢

JDBC learning

LabVIEW displays Unicode characters

How to quickly install MySQL 5.7.17 under CentOS 6.5

How to solve startup failure due to insufficient MySQL memory

JVM_ 16_ Garbage collector

Why is the test post a giant pit? The 8-year-old tester told you not to be fooled

Technical specifications of Tektronix tds3054b oscilloscope

Redis 缓存穿透、缓存击穿、缓存雪崩

SEAttention 通道注意力机制

Implementation of thread pool based on variable parameter template
随机推荐
【HackTheBox】dancing(SMB)
MySQL column to row conversion without Union
The virtual machine MySQL cannot be connected to the local computer
1017 A除以B分
Live broadcast appointment AWS data everywhere series activities
LabVIEW显示Unicode字符
ROS URDF model is parsed into KDL tree
力扣解法汇总324-摆动排序 II
[hackthebox] dancing (SMB)
How to solve startup failure due to insufficient MySQL memory
如何创建 robots.txt 文件?
SEAttention 通道注意力機制
Force deduction solution summary 324- swing sequencing II
项目开发修养
What are the ways to simulate and burn programs? (including common tools and usage)
泰克TDS3054B示波器技术指标
Why is the test post a giant pit? The 8-year-old tester told you not to be fooled
What are the basic usage methods of MySQL
Blue Bridge Cup ruler method
[laravel series 8] out of the world of laravel