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

Subversion Repositories simple_fm_receiver

[/] [simple_fm_receiver/] [trunk/] [source/] [phase_detector.vhdl] - Blame information for rev 11

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 11 arif_endro
-- $Id: phase_detector.vhdl,v 1.2 2005-02-21 06:28:29 arif_endro Exp $
2 2 arif_endro
-------------------------------------------------------------------------------
3
-- Title       : Phase detector
4
-- Project     : FM Receiver 
5
-------------------------------------------------------------------------------
6
-- File        : phase_detector.vhdl
7
-- Author      : "Arif E. Nugroho" <arif_endro@yahoo.com>
8
-- Created     : 2004/12/18
9
-- Last update : 
10 11 arif_endro
-- Simulators  : 
11 2 arif_endro
-- Synthesizers: 
12
-- Target      : 
13
-------------------------------------------------------------------------------
14
-- Description : multiply input signal with signal nco
15
-------------------------------------------------------------------------------
16 11 arif_endro
-- Copyright (C) 2004 Arif E. Nugroho
17 2 arif_endro
-- This VHDL design file is an open design; you can redistribute it and/or
18
-- modify it and/or implement it after contacting the author
19
-------------------------------------------------------------------------------
20 11 arif_endro
-------------------------------------------------------------------------------
21
-- 
22
--      THIS SOURCE FILE MAY BE USED AND DISTRIBUTED WITHOUT RESTRICTION
23
-- PROVIDED THAT THIS COPYRIGHT STATEMENT IS NOT REMOVED FROM THE FILE AND THAT
24
-- ANY DERIVATIVE WORK CONTAINS THE ORIGINAL COPYRIGHT NOTICE AND THE
25
-- ASSOCIATED DISCLAIMER.
26
-- 
27
-------------------------------------------------------------------------------
28
-- 
29
--      THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
30
-- IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
31
-- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
32
-- EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
34
-- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
35
-- OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
36
-- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
37
-- OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
38
-- ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
-- 
40
-------------------------------------------------------------------------------
41 2 arif_endro
 
42
library IEEE;
43
use IEEE.STD_LOGIC_1164.ALL;
44
use IEEE.STD_LOGIC_arith.ALL;
45
 
46
entity phase_detector is
47
   port (
48
   clock        : in  bit;
49
   signal_input : in  bit_vector (07 downto 0);
50
   signal_nco   : in  bit_vector (07 downto 0);
51
   phase_output : out bit_vector (07 downto 0)
52
   );
53
end phase_detector;
54
 
55
architecture structural of phase_detector is
56
   component mult_8bit
57
   port (
58
   mult_01    : in  bit_vector (07 downto 00);
59
   mult_02    : in  bit_vector (07 downto 00);
60
   result_mult: out bit_vector (15 downto 00)
61
   );
62
   end component;
63
 
64
   signal output_mult  : bit_vector (15 downto 0);
65
 
66
   begin
67
 
68
phase_mult: mult_8bit
69
   port map (
70
   mult_01     (07 downto 0)  => signal_input,
71
   mult_02     (07 downto 0)  => signal_nco,
72
   result_mult (15 downto 0)  => output_mult
73
   );
74
 
75
   process (clock)
76
 
77
   begin
78 11 arif_endro
 
79
   if ((clock = '1') and clock'event) then
80
 
81
        phase_output <= output_mult(15 downto 8);
82
 
83
   end if;
84
 
85 2 arif_endro
   end process;
86 11 arif_endro
 
87 2 arif_endro
end structural;

powered by: WebSVN 2.1.0

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