14 lines
278 B
VHDL
14 lines
278 B
VHDL
|
ARCHITECTURE studentVersion OF triangleToPolygon IS
|
||
|
|
||
|
signal mySignal : unsigned(bitNb downto 0);
|
||
|
|
||
|
BEGIN
|
||
|
|
||
|
convert: process(triangle)
|
||
|
begin
|
||
|
mySignal <= triangle + shift_left(triangle, 1);
|
||
|
end process convert;
|
||
|
|
||
|
polygon <= mySignal;
|
||
|
END ARCHITECTURE studentVersion;
|