当前位置:网站首页>Force/release learning arrangement in IC Verification (5) research on the influence of reg type signals
Force/release learning arrangement in IC Verification (5) research on the influence of reg type signals
2022-06-12 04:51:00 【Then the food】
The previous section , We learned how to view force The signal , And how based on UVM The signal is tested under the platform force operation . today , Let's study it carefully ,force The signal is right RTL In the code reg The influence of type signal .
Look at the example : In the following example ,clk,rst ,counter Three signals , Are declared as reg Type variable . Let's focus on counter[7:0] The signal , The signal 8bit, It's a counter .
`timescale 1ns/1ps
import uvm_pkg::*;
//`include "uvm_pkg.sv"
//`include "uvm_macros.svh"
module tb_top();
reg clk,rst;
reg [7:0] counter;
initial begin
clk = 0;
forever #5 clk = ~ clk;
end
initial begin
rst = 1;
#30 rst = 0 ;
#25 rst = 1;
end
always @ (posedge clk or negedge rst) begin
if(!rst)
counter <= 8'b0;
else
counter <= counter +1;
end
initial begin
run_test("helloworld_test") ;
end
initial begin
$fsdbDumpfile("tb_top.fsdb");
$fsdbDumpvars(0,"tb_top");
end
endmodule
UVM Code in the platform :
`ifndef HELLOWORLD_TEST
`define HELLOWORLD_TEST边栏推荐
- Musk promotes the development of fascinating new products partners remind important questions
- SQL injection upload one sentence Trojan horse (turn)
- Find missing sequence numbers - SQL query to find missing sequence numbers
- QT compiling security video monitoring system 44 video uploading
- 千字巨著《编程后传》
- one billion one hundred and eleven million one hundred and eleven thousand one hundred and eleven
- Using datetime in MySQL
- asp. Net core theme Middleware
- Report on the current market situation and future development trend of adhesive industry for radar and ultrasonic sensors in the world and China 2022 ~ 2028
- Chapter 1
猜你喜欢

Gao Xiang slam14 notes on three Lie groups and Lie algebra
![[wechat applet] the mobile terminal selects and publishes pictures](/img/9a/46bc4a7bf9b70d26b0e24fe02f747d.jpg)
[wechat applet] the mobile terminal selects and publishes pictures

Gavin teacher's perception of transformer live class - rasa dialogue robot project practice in the field of education agency mode and core component source code analysis under the microservice of educ

cellular automaton

L1-066 cat is liquid (5 points)

Image processing 13- calculation of integral diagram

Drive safety coding & troubleshooting guide

Why should a redis cluster use a reverse proxy? Just read this one

JWT learning and use

Redis learning notes (continuously updating)
随机推荐
[backtracking method] queen n problem
22-2-28 there are many things to do at work today, ETH analysis
The third "World War" - chip defense, smokeless battlefield!
MySQL master-slave construction and Django implementation of read-write separation
Image processing 13- calculation of integral diagram
Betteland introduces milk products of non animal origin, which will be launched in the U.S. market in the near future
[backtracking] backtracking to solve subset problems
千字巨著《编程后传》
JWT learning and use
Bearpi IOT serial port transceiver 1- normal mode
Redis learning notes (continuously updating)
leetcode797. All possible paths (medium)
Longest palindrome string
LabVIEW关于TDMS和Binary存储速度
Enhanced vegetation index evi, NDVI data, NPP data, GPP data, land use data, vegetation type data, rainfall data
Kwai opens a milestone activity for fans to record every achievement moment for creators
Zabbix6.0 new feature GEOMAP map marker can you use it?
One dragon and one knight accompanying programmers are 36 years old
Please calculate the value of the following function recursively: PX (x, n) =x-x^2 +x^3- x^4+... (-1) n-1) (xn) n > 0 * * input format requirements: "%lf%d" prompt: "enter X and n:"
Qinglong wool - Kaka