1
0

add triangle signal

This commit is contained in:
Rémi Heredero 2024-02-27 11:41:20 +01:00
parent eb5a3d3a2a
commit b8b5c00ac2
2 changed files with 15 additions and 7 deletions

View File

@ -1,4 +1,18 @@
ARCHITECTURE studentVersion OF sawtoothToTriangle IS ARCHITECTURE studentVersion OF sawtoothToTriangle IS
signal mySignal : unsigned(bitNb-1 downto 0);
BEGIN BEGIN
triangle <= (others => '0');
convert: process(sawtooth)
begin
if sawtooth(bitNb-1) = '1' then
mySignal <= NOT sawtooth;
else
mySignal <= sawtooth;
end if;
end process convert;
triangle <= shift_left(mySignal, 1);
END ARCHITECTURE studentVersion; END ARCHITECTURE studentVersion;

View File

@ -1,6 +0,0 @@
EDIT_LOCK
remi.heredero
UNKNOWN
WE2330808
2208
27.02.2024-10:16:57.263000