add trigger + shift register + coeff
This commit is contained in:
		| @@ -8,7 +8,7 @@ BEGIN | ||||
|  | ||||
|   phaseTableAddress <= phase(phase'high-2 downto phase'high-2-tableAddressBitNb+1); | ||||
|  | ||||
|   sequenceTable: process(phase) | ||||
|   sequenceTable: process(phaseTableAddress) | ||||
|   begin | ||||
|     if phase(phase'high-1) = '1' then | ||||
|       phaseTableAddress2 <= 8 - phaseTableAddress; | ||||
| @@ -30,9 +30,14 @@ BEGIN | ||||
|       when 7 => quarterSine <= to_signed(16#7D89#, quarterSine'length); | ||||
|       when others => quarterSine <= (others => '-'); | ||||
|     end case; | ||||
|     if phaseTableAddress2 = 0 then | ||||
|       if phase(phase'high-1) = '1' then | ||||
|         quarterSine <= to_signed(16#7FFF#, quarterSine'length); | ||||
|       end if; | ||||
|     end if; | ||||
|   end process quarterTable; | ||||
|  | ||||
|   invert: process(quarterSine) | ||||
|   invert: process(quarterSine, phase(phase'high)) | ||||
|   begin | ||||
|     if phase(phase'high) = '1' then | ||||
|       sine <= NOT quarterSine; | ||||
| @@ -40,7 +45,5 @@ BEGIN | ||||
|       sine <= quarterSine; | ||||
|     end if; | ||||
|   end process invert; | ||||
|    | ||||
|   --sine <= quarterSine; | ||||
|  | ||||
| END ARCHITECTURE studentVersion; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user