add triangle signal
This commit is contained in:
parent
eb5a3d3a2a
commit
b8b5c00ac2
@ -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;
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
EDIT_LOCK
|
|
||||||
remi.heredero
|
|
||||||
UNKNOWN
|
|
||||||
WE2330808
|
|
||||||
2208
|
|
||||||
27.02.2024-10:16:57.263000
|
|
Loading…
Reference in New Issue
Block a user