Professional Documents
Culture Documents
442ск Горда VHDL Лабораторна№3
442ск Горда VHDL Лабораторна№3
Лабораторна робота №3
ОСВОЄННЯ ІНТЕГРОВАНОГО СЕРЕДОВИЩА
ПРОЄКТУВАННЯ ACTIVE-HDL
Чернівці 2022
Мета: Створити в інтегрованому середовищі Active-HDL проект тригера відповідно до
варіанту, вивести на екран результати моделювання за допомогою Waveform Editor та
отримати схему.
entity Triger is
port ( CLK : in BIT;
R : in BIT;
S : in BIT;
Q : out BIT:='0';
QN : out BIT:='1'
);
end Triger;
begin
process(S, R, CLK)
begin
if CLK='1' then
if S='0' and R='0' then
report "err";
elsif S='1' and R='1' then
report "err";
elsif S='1' and R='0' then
Q <= S;
QN <= not S;
elsif S='0' and R='1' then
Q <= S;
QN <= not S;
end if;
end if;
end process;
-- enter your statements here --
end Triger;
Макро-файл:
asim Triger
wave -in -color 0,127,255 CLK R S
wave -color 255,127,255 Q QN
force R 0 5 ns, 0 10 ns, 1 15 ns, 1 20 ns
force S 0 5 ns, 1 10 ns, 0 15 ns, 1 20 ns
force CLK 0 5 ns, 1 10 ns, 0 15 ns, 1 20 ns
run 25ns
Графік