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

Subversion Repositories simple_fm_receiver

[/] [simple_fm_receiver/] [trunk/] [source/] [nco.vhdl] - Diff between revs 14 and 23

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 14 Rev 23
Line 1... Line 1...
-- $Id: nco.vhdl,v 1.3 2005-03-04 08:06:20 arif_endro Exp $
-- $Id: nco.vhdl,v 1.4 2008-06-26 06:16:04 arif_endro Exp $
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- Title       : NCO (Numerical Controlled Oscillator)
-- Title       : NCO (Numerical Controlled Oscillator)
-- Project     : FM Receiver 
-- Project     : FM Receiver 
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- File        : nco.vhdl
-- File        : nco.vhdl
Line 97... Line 97...
   address_in (03) <= (adder_output(11));
   address_in (03) <= (adder_output(11));
   address_in (02) <= (adder_output(10));
   address_in (02) <= (adder_output(10));
   address_in (01) <= (adder_output(09));
   address_in (01) <= (adder_output(09));
   address_in (00) <= (adder_output(08));
   address_in (00) <= (adder_output(08));
 
 
   process (clock, clear)
--   process (clock, clear)
 
   process (clock)
 
 
   begin
   begin
 
 
   if    (clear = '1') then
-- 20080625
 
-- fixme
 
-- how to enable clear signal in here... :(
 
 
        output_nco      <= (others => '0');
--   if    (clear = '1') then
 
   if ((clock = '1') and clock'event) then
 
 
   elsif (((clock = '1') and (not(clear) = '1')) and clock'event) then
--      output_nco      <= (others => '0');
 
 
 
--   elsif (((clock = '1') and (not(clear) = '1')) and clock'event) then
 
 
        output_nco (07) <= (output_rom(07));
        output_nco (07) <= (output_rom(07));
        output_nco (06) <= (output_rom(06));
        output_nco (06) <= (output_rom(06));
        output_nco (05) <= (output_rom(05));
        output_nco (05) <= (output_rom(05));
        output_nco (04) <= (output_rom(04));
        output_nco (04) <= (output_rom(04));

powered by: WebSVN 2.1.0

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