diff options
author | fishsoupisgood <github@madingley.org> | 2018-05-17 09:17:21 +0100 |
---|---|---|
committer | fishsoupisgood <github@madingley.org> | 2018-05-17 09:17:21 +0100 |
commit | 0780df86a9ec88bf8810f7fef1d241030dc1b655 (patch) | |
tree | 616b7af709d554a64de9c6077e34c8d64919c875 /ccd.vhd | |
download | rob_spdif-0780df86a9ec88bf8810f7fef1d241030dc1b655.tar.gz rob_spdif-0780df86a9ec88bf8810f7fef1d241030dc1b655.tar.bz2 rob_spdif-0780df86a9ec88bf8810f7fef1d241030dc1b655.zip |
first version for rob - supports only 44.1kHz
Diffstat (limited to 'ccd.vhd')
-rw-r--r-- | ccd.vhd | 49 |
1 files changed, 49 insertions, 0 deletions
@@ -0,0 +1,49 @@ + + +library IEEE; +use IEEE.STD_LOGIC_1164.all; +use IEEE.std_logic_unsigned.all; +use IEEE.numeric_std.all; + +entity ccd is + port + ( + n_reset : in std_logic; + clk : in std_logic; + d : in std_logic; + q : out std_logic + ); +end ccd; + + +architecture rtl of ccd is + + component dflipflop is + port ( + n_reset : in std_logic; + clk : in std_logic; + d : in std_logic; + q : out std_logic + ); + end component; + + signal d1 : + std_logic; +begin + + dff1 : + dflipflop port map ( + n_reset => n_reset, + d => d, + clk => clk, + q => d1 + ); + dff2 : + dflipflop port map ( + n_reset => n_reset, + d => d1, + clk => not clk, + q => q + ); + +end rtl; |