dzxs.vht

来自「vhdl语言实现的16乘16的点阵显示设计代码」· VHT 代码 · 共 2,233 行 · 第 1/4 页

VHT
2,233
字号
		t_sig_o1_expected(7) <= '1';
		WAIT FOR 60000 ps;
		t_sig_o1_expected(7) <= '0';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(7) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(7) <= '0';
		WAIT FOR 60000 ps;
		t_sig_o1_expected(7) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(7) <= '0';
		WAIT FOR 140000 ps;
	END LOOP;
	t_sig_o1_expected(7) <= '1';
	WAIT FOR 60000 ps;
	t_sig_o1_expected(7) <= '0';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(7) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(7) <= '0';
	WAIT FOR 60000 ps;
	t_sig_o1_expected(7) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(7) <= '0';
WAIT;
END PROCESS t_prcs_hang_7;
-- expected hang[6]
t_prcs_hang_6: PROCESS
BEGIN
	t_sig_o1_expected(6) <= '0';
	WAIT FOR 30000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(6) <= '1';
		WAIT FOR 80000 ps;
		t_sig_o1_expected(6) <= '0';
		WAIT FOR 240000 ps;
	END LOOP;
	t_sig_o1_expected(6) <= '1';
	WAIT FOR 80000 ps;
	t_sig_o1_expected(6) <= '0';
	WAIT FOR 260000 ps;
	t_sig_o1_expected(6) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(6) <= '0';
	WAIT FOR 120000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(6) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(6) <= '0';
		WAIT FOR 20000 ps;
		FOR i IN 1 TO 2
		LOOP
			t_sig_o1_expected(6) <= '1';
			WAIT FOR 20000 ps;
			t_sig_o1_expected(6) <= '0';
			WAIT FOR 120000 ps;
		END LOOP;
	END LOOP;
	t_sig_o1_expected(6) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(6) <= '0';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(6) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(6) <= '0';
	WAIT FOR 280000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(6) <= '1';
		WAIT FOR 60000 ps;
		t_sig_o1_expected(6) <= '0';
		WAIT FOR 260000 ps;
	END LOOP;
	t_sig_o1_expected(6) <= '1';
	WAIT FOR 60000 ps;
	t_sig_o1_expected(6) <= '0';
	WAIT FOR 120000 ps;
	t_sig_o1_expected(6) <= '1';
	WAIT FOR 20000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(6) <= '0';
		WAIT FOR 160000 ps;
		t_sig_o1_expected(6) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(6) <= '0';
		WAIT FOR 80000 ps;
		t_sig_o1_expected(6) <= '1';
		WAIT FOR 60000 ps;
	END LOOP;
	t_sig_o1_expected(6) <= '0';
	WAIT FOR 160000 ps;
	t_sig_o1_expected(6) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(6) <= '0';
	WAIT FOR 80000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(6) <= '1';
		WAIT FOR 80000 ps;
		t_sig_o1_expected(6) <= '0';
		WAIT FOR 240000 ps;
	END LOOP;
	t_sig_o1_expected(6) <= '1';
	WAIT FOR 80000 ps;
	t_sig_o1_expected(6) <= '0';
WAIT;
END PROCESS t_prcs_hang_6;
-- expected hang[5]
t_prcs_hang_5: PROCESS
BEGIN
	t_sig_o1_expected(5) <= '0';
	WAIT FOR 30000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(5) <= '1';
		WAIT FOR 80000 ps;
		t_sig_o1_expected(5) <= '0';
		WAIT FOR 240000 ps;
	END LOOP;
	t_sig_o1_expected(5) <= '1';
	WAIT FOR 80000 ps;
	t_sig_o1_expected(5) <= '0';
	WAIT FOR 260000 ps;
	t_sig_o1_expected(5) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(5) <= '0';
	WAIT FOR 120000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(5) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(5) <= '0';
		WAIT FOR 20000 ps;
		FOR i IN 1 TO 2
		LOOP
			t_sig_o1_expected(5) <= '1';
			WAIT FOR 20000 ps;
			t_sig_o1_expected(5) <= '0';
			WAIT FOR 120000 ps;
		END LOOP;
	END LOOP;
	t_sig_o1_expected(5) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(5) <= '0';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(5) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(5) <= '0';
	WAIT FOR 280000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(5) <= '1';
		WAIT FOR 60000 ps;
		t_sig_o1_expected(5) <= '0';
		WAIT FOR 260000 ps;
	END LOOP;
	t_sig_o1_expected(5) <= '1';
	WAIT FOR 60000 ps;
	t_sig_o1_expected(5) <= '0';
	WAIT FOR 120000 ps;
	t_sig_o1_expected(5) <= '1';
	WAIT FOR 20000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(5) <= '0';
		WAIT FOR 160000 ps;
		t_sig_o1_expected(5) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(5) <= '0';
		WAIT FOR 80000 ps;
		t_sig_o1_expected(5) <= '1';
		WAIT FOR 60000 ps;
	END LOOP;
	t_sig_o1_expected(5) <= '0';
	WAIT FOR 160000 ps;
	t_sig_o1_expected(5) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(5) <= '0';
	WAIT FOR 80000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(5) <= '1';
		WAIT FOR 80000 ps;
		t_sig_o1_expected(5) <= '0';
		WAIT FOR 240000 ps;
	END LOOP;
	t_sig_o1_expected(5) <= '1';
	WAIT FOR 80000 ps;
	t_sig_o1_expected(5) <= '0';
WAIT;
END PROCESS t_prcs_hang_5;
-- expected hang[4]
t_prcs_hang_4: PROCESS
BEGIN
	t_sig_o1_expected(4) <= '0';
	WAIT FOR 30000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(4) <= '1';
		WAIT FOR 80000 ps;
		t_sig_o1_expected(4) <= '0';
		WAIT FOR 60000 ps;
		t_sig_o1_expected(4) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(4) <= '0';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(4) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(4) <= '0';
		WAIT FOR 120000 ps;
	END LOOP;
	t_sig_o1_expected(4) <= '1';
	WAIT FOR 80000 ps;
	t_sig_o1_expected(4) <= '0';
	WAIT FOR 60000 ps;
	t_sig_o1_expected(4) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(4) <= '0';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(4) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(4) <= '0';
	WAIT FOR 140000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(4) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(4) <= '0';
		WAIT FOR 40000 ps;
		t_sig_o1_expected(4) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(4) <= '0';
		WAIT FOR 60000 ps;
		t_sig_o1_expected(4) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(4) <= '0';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(4) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(4) <= '0';
		WAIT FOR 120000 ps;
	END LOOP;
	t_sig_o1_expected(4) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(4) <= '0';
	WAIT FOR 40000 ps;
	t_sig_o1_expected(4) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(4) <= '0';
	WAIT FOR 60000 ps;
	t_sig_o1_expected(4) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(4) <= '0';
	WAIT FOR 20000 ps;
	FOR i IN 1 TO 6250
	LOOP
		t_sig_o1_expected(4) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(4) <= '0';
		WAIT FOR 300000 ps;
	END LOOP;
	t_sig_o1_expected(4) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(4) <= '0';
	WAIT FOR 320000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(4) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(4) <= '0';
		WAIT FOR 80000 ps;
		t_sig_o1_expected(4) <= '1';
		WAIT FOR 40000 ps;
		t_sig_o1_expected(4) <= '0';
		WAIT FOR 180000 ps;
	END LOOP;
	t_sig_o1_expected(4) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(4) <= '0';
	WAIT FOR 80000 ps;
	t_sig_o1_expected(4) <= '1';
	WAIT FOR 40000 ps;
	t_sig_o1_expected(4) <= '0';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(4) <= '1';
	WAIT FOR 20000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(4) <= '0';
		WAIT FOR 60000 ps;
		t_sig_o1_expected(4) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(4) <= '0';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(4) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(4) <= '0';
		WAIT FOR 120000 ps;
		t_sig_o1_expected(4) <= '1';
		WAIT FOR 80000 ps;
	END LOOP;
	t_sig_o1_expected(4) <= '0';
	WAIT FOR 60000 ps;
	t_sig_o1_expected(4) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(4) <= '0';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(4) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(4) <= '0';
WAIT;
END PROCESS t_prcs_hang_4;
-- expected hang[3]
t_prcs_hang_3: PROCESS
BEGIN
	t_sig_o1_expected(3) <= '0';
	WAIT FOR 30000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(3) <= '1';
		WAIT FOR 80000 ps;
		t_sig_o1_expected(3) <= '0';
		WAIT FOR 60000 ps;
		t_sig_o1_expected(3) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(3) <= '0';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(3) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(3) <= '0';
		WAIT FOR 120000 ps;
	END LOOP;
	t_sig_o1_expected(3) <= '1';
	WAIT FOR 80000 ps;
	t_sig_o1_expected(3) <= '0';
	WAIT FOR 60000 ps;
	t_sig_o1_expected(3) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(3) <= '0';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(3) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(3) <= '0';
	WAIT FOR 140000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(3) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(3) <= '0';
		WAIT FOR 40000 ps;
		t_sig_o1_expected(3) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(3) <= '0';
		WAIT FOR 60000 ps;
		t_sig_o1_expected(3) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(3) <= '0';
		WAIT FOR 160000 ps;
	END LOOP;
	t_sig_o1_expected(3) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(3) <= '0';
	WAIT FOR 40000 ps;
	t_sig_o1_expected(3) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(3) <= '0';
	WAIT FOR 60000 ps;
	t_sig_o1_expected(3) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(3) <= '0';
	WAIT FOR 340000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(3) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(3) <= '0';
		WAIT FOR 300000 ps;
	END LOOP;
	t_sig_o1_expected(3) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(3) <= '0';
	WAIT FOR 260000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(3) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(3) <= '0';
		WAIT FOR 40000 ps;
		t_sig_o1_expected(3) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(3) <= '0';
		WAIT FOR 80000 ps;
		t_sig_o1_expected(3) <= '1';
		WAIT FOR 40000 ps;
		t_sig_o1_expected(3) <= '0';
		WAIT FOR 120000 ps;
	END LOOP;
	t_sig_o1_expected(3) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(3) <= '0';
	WAIT FOR 40000 ps;
	t_sig_o1_expected(3) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(3) <= '0';
	WAIT FOR 80000 ps;
	t_sig_o1_expected(3) <= '1';
	WAIT FOR 40000 ps;
	t_sig_o1_expected(3) <= '0';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(3) <= '1';
	WAIT FOR 20000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(3) <= '0';
		WAIT FOR 60000 ps;
		t_sig_o1_expected(3) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(3) <= '0';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(3) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(3) <= '0';
		WAIT FOR 120000 ps;
		t_sig_o1_expected(3) <= '1';
		WAIT FOR 80000 ps;
	END LOOP;
	t_sig_o1_expected(3) <= '0';
	WAIT FOR 60000 ps;
	t_sig_o1_expected(3) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(3) <= '0';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(3) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(3) <= '0';
WAIT;
END PROCESS t_prcs_hang_3;
-- expected hang[2]
t_prcs_hang_2: PROCESS
BEGIN
	t_sig_o1_expected(2) <= '0';
	WAIT FOR 30000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(2) <= '1';
		WAIT FOR 60000 ps;
		t_sig_o1_expected(2) <= '0';
		WAIT FOR 40000 ps;
		t_sig_o1_expected(2) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '0';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '0';
		WAIT FOR 40000 ps;
		t_sig_o1_expected(2) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '0';
		WAIT FOR 100000 ps;
	END LOOP;
	t_sig_o1_expected(2) <= '1';
	WAIT FOR 60000 ps;
	t_sig_o1_expected(2) <= '0';
	WAIT FOR 40000 ps;
	t_sig_o1_expected(2) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(2) <= '0';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(2) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(2) <= '0';
	WAIT FOR 40000 ps;
	t_sig_o1_expected(2) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(2) <= '0';
	WAIT FOR 120000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(2) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '0';
		WAIT FOR 40000 ps;
		t_sig_o1_expected(2) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '0';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '0';
		WAIT FOR 200000 ps;
	END LOOP;
	t_sig_o1_expected(2) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(2) <= '0';
	WAIT FOR 40000 ps;
	t_sig_o1_expected(2) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(2) <= '0';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(2) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(2) <= '0';
	WAIT FOR 280000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(2) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '0';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '0';
		WAIT FOR 40000 ps;
		t_sig_o1_expected(2) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '0';
		WAIT FOR 200000 ps;
	END LOOP;
	t_sig_o1_expected(2) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(2) <= '0';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(2) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(2) <= '0';
	WAIT FOR 40000 ps;
	t_sig_o1_expected(2) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(2) <= '0';
	WAIT FOR 220000 ps;
	FOR i IN 1 TO 6249
	LOOP
		t_sig_o1_expected(2) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '0';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '1';
		WAIT FOR 40000 ps;
		t_sig_o1_expected(2) <= '0';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '1';
		WAIT FOR 20000 ps;
		t_sig_o1_expected(2) <= '0';
		WAIT FOR 80000 ps;
		t_sig_o1_expected(2) <= '1';
		WAIT FOR 40000 ps;
		t_sig_o1_expected(2) <= '0';
		WAIT FOR 80000 ps;
	END LOOP;
	t_sig_o1_expected(2) <= '1';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(2) <= '0';
	WAIT FOR 20000 ps;
	t_sig_o1_expected(2) <= '1';
	WAIT FOR 40000 ps;

⌨️ 快捷键说明

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