22_deadlock.vhd

来自「本例的源描述超过了演示版限制的300行, 如果您需要对其进行编译与模拟,」· VHDL 代码 · 共 51 行

VHD
51
字号
--Page      : 282

--Objective : Infinite oscillation in delta time domain 

--Filename  :test_13

--Author    :Joseph Pick

entity Test_13 is 
end Test_13;

architecture Behave_1 of Test_13 is 

   signal A : NATURAL :=1;
   signal B : NATURAL :=1;

begin 
 Inc_A:
 process 
 begin 
   A<=A+1;
   wait on B;
   if(Now > 0 ns) then
	 assert FALSE
	 report "Absolute simulation time has processed : Inc_A"
	 severity NOTE;
   end if;
 end process;

 Inc_B:
 process
 begin
   wait on A;
   if(Now > 0 ns ) then 
	 assert FALSE
	 report "Absolute simulation time has processed : Inc_A"
	 severity NOTE;
   end if;
   B <=B+1; 
 end process;

 Finish:
 process
 begin
	wait for 100 ns;
	assert false  report "End of Simulation"
	severity Error;
 end process Finish;

 end  Behave_1;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?