这是测试激励的初始化文件,红色是不明白的地方不理解,还有老师是怎么处理addr_t = addr + phase;的思路,寄存器取值的步骤是什么?
begin
Clk = 0;Rst_n = 1;
En = 0;
phase = 0;
#10
Rst_n = 0;
@(negedge Clk);
@(negedge Clk)
Rst_n = 1;
@(negedge Clk)
Lock = 1;
K = 1;
@(negedge Clk)
Lock = 0;
@(negedge Clk)
En = 1;
#30000
@(negedge Clk)
phase = 200;
#30000
@(negedge Clk)
Lock = 1;
K = 10;
@(negedge Clk)
Lock = 0;
#30000
$stop;
endbegin
Clk = 0;
Rst_n = 1;
En = 0;
phase = 0;
#10
Rst_n = 0;
@(negedge Clk);
@(negedge Clk)
Rst_n = 1;
@(negedge Clk)
Lock = 1;
K = 1;
@(negedge Clk)
Lock = 0;
@(negedge Clk)
En = 1;
#30000
@(negedge Clk)
phase = 200;
#30000
@(negedge Clk)
Lock = 1;
K = 10;
@(negedge Clk)
Lock = 0;
#30000
$stop;
end