1
0
This repository has been archived on 2024-10-30. You can view files and clone it, but cannot push or open issues or pull requests.
SEm-ExamMidterm2024/VHD/hdl/ex_24_1_2_studentVersion.vhd
2024-03-22 13:16:48 +01:00

26 lines
437 B
VHDL

architecture studentVersion of ex_24_1_2 is
signal mySignal: std_ulogic;
begin
process(motorOn, pwm) begin
if motorOn = '1' then
mySignal <= pwm;
else
mySignal <= '0';
end if;
end process;
process(mySignal, right_left) begin
if right_left = '1' then
side1 <= mySignal;
side2 <= '0';
else
side1 <= '0';
side2 <= mySignal;
end if;
end process;
end studentVersion;