OpenCores
URL https://opencores.org/ocsvn/dds_synthesizer/dds_synthesizer/trunk

Subversion Repositories dds_synthesizer

[/] [dds_synthesizer/] [trunk/] [matlab/] [sine_lut.m] - Diff between revs 3 and 5

Only display areas with differences | Details | Blame | View Log

Rev 3 Rev 5
% This is the definition of the function to be generated as LUT
% This is the definition of the function to be generated as LUT
%
%
% Copyright (C) 2009 Martin Kumm
% Copyright (C) 2009 Martin Kumm
%
%
% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License
% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License
% as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
% as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
% This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
% warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
% warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License along with this program;
% You should have received a copy of the GNU General Public License along with this program;
% if not, see <http://www.gnu.org/licenses/>.
% if not, see <http://www.gnu.org/licenses/>.
 
 
function ret = sine_lut(x)
function ret = sine_lut(x)
global phase_width;
global phase_width;
ret = sin((x-1)/2^phase_width * 2 * pi);
ret = sin((x-1)/2^phase_width * 2 * pi);
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.