Archived
1
0

Initial commit

This commit is contained in:
github-classroom[bot]
2024-02-23 13:01:05 +00:00
committed by GitHub
commit d212040c30
1914 changed files with 1290006 additions and 0 deletions

View File

@ -0,0 +1,4 @@
ARCHITECTURE studentVersion OF interpolatorCalculatePolynom IS
BEGIN
sampleOut <= (others => '0');
END ARCHITECTURE studentVersion;

View File

@ -0,0 +1,7 @@
ARCHITECTURE studentVersion OF interpolatorCoefficients IS
BEGIN
a <= (others => '0');
b <= (others => '0');
c <= (others => '0');
d <= (others => '0');
END ARCHITECTURE studentVersion;

View File

@ -0,0 +1,7 @@
ARCHITECTURE studentVersion OF interpolatorShiftRegister IS
BEGIN
sample1 <= (others => '0');
sample2 <= (others => '0');
sample3 <= (others => '0');
sample4 <= (others => '0');
END ARCHITECTURE studentVersion;

View File

@ -0,0 +1,4 @@
ARCHITECTURE studentVersion OF interpolatorTrigger IS
BEGIN
triggerOut <= '0';
END ARCHITECTURE studentVersion;

View File

@ -0,0 +1,4 @@
ARCHITECTURE studentVersion OF offsetToUnsigned IS
BEGIN
unsignedOut <= (others => '0');
END ARCHITECTURE studentVersion;

View File

@ -0,0 +1,4 @@
ARCHITECTURE studentVersion OF resizer IS
BEGIN
resizeOut <= (others => '0');
END ARCHITECTURE studentVersion;

View File

@ -0,0 +1,27 @@
ARCHITECTURE studentVersion OF sineTable IS
signal phaseTableAddress : unsigned(tableAddressBitNb-1 downto 0);
signal quarterSine : signed(sine'range);
BEGIN
phaseTableAddress <= phase(phase'high-2 downto phase'high-2-tableAddressBitNb+1);
quarterTable: process(phaseTableAddress)
begin
case to_integer(phaseTableAddress) is
when 0 => quarterSine <= to_signed(16#0000#, quarterSine'length);
when 1 => quarterSine <= to_signed(16#18F9#, quarterSine'length);
when 2 => quarterSine <= to_signed(16#30FB#, quarterSine'length);
when 3 => quarterSine <= to_signed(16#471C#, quarterSine'length);
when 4 => quarterSine <= to_signed(16#5A82#, quarterSine'length);
when 5 => quarterSine <= to_signed(16#6A6D#, quarterSine'length);
when 6 => quarterSine <= to_signed(16#7641#, quarterSine'length);
when 7 => quarterSine <= to_signed(16#7D89#, quarterSine'length);
when others => quarterSine <= (others => '-');
end case;
end process quarterTable;
sine <= (others => '0');
END ARCHITECTURE studentVersion;