URL
https://opencores.org/ocsvn/adaptive_lms_equalizer/adaptive_lms_equalizer/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
| Line No. |
Rev |
Author |
Line |
| 1 |
2 |
digish |
-- Copyright (C) 2004-2005 Digish Pandya <digish.pandya@gmail.com>
|
| 2 |
|
|
|
| 3 |
|
|
-- This program is free software; you can redistribute it and/or modify
|
| 4 |
|
|
-- it under the terms of the GNU General Public License as published by
|
| 5 |
|
|
-- the Free Software Foundation; either version 2 of the License, or
|
| 6 |
|
|
-- (at your option) any later version.
|
| 7 |
|
|
--
|
| 8 |
|
|
-- This program is distributed in the hope that it will be useful,
|
| 9 |
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 10 |
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 11 |
|
|
-- GNU General Public License for more details.
|
| 12 |
|
|
--
|
| 13 |
|
|
-- You should have received a copy of the GNU General Public License
|
| 14 |
|
|
-- along with this program; if not, write to the Free Software
|
| 15 |
|
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
| 16 |
|
|
|
| 17 |
|
|
-- A.10
|
| 18 |
|
|
-- multiply by 0.0625
|
| 19 |
|
|
-- only simple shift logic is applied
|
| 20 |
|
|
|
| 21 |
|
|
library IEEE;
|
| 22 |
|
|
use IEEE.STD_LOGIC_1164.ALL;
|
| 23 |
|
|
use IEEE.STD_LOGIC_ARITH.ALL;
|
| 24 |
|
|
use IEEE.STD_LOGIC_SIGNED.ALL;
|
| 25 |
|
|
|
| 26 |
|
|
|
| 27 |
|
|
entity u_scaling is
|
| 28 |
|
|
Port ( d_in : in std_logic_vector(15 downto 0);
|
| 29 |
|
|
d_out : out std_logic_vector(15 downto 0);
|
| 30 |
|
|
clock : in std_logic);
|
| 31 |
|
|
end u_scaling;
|
| 32 |
|
|
|
| 33 |
|
|
architecture combinational of u_scaling is
|
| 34 |
|
|
signal sign_bit:std_logic_vector(4 downto 0);
|
| 35 |
|
|
begin
|
| 36 |
|
|
p1:
|
| 37 |
|
|
process(clock)
|
| 38 |
|
|
begin
|
| 39 |
|
|
|
| 40 |
|
|
if(clock'event and clock = '1') then
|
| 41 |
|
|
d_out <= d_in(15) & d_in(15) & d_in(15) & d_in(15) & d_in(15) & d_in(14 downto 4);
|
| 42 |
|
|
end if;
|
| 43 |
|
|
end process;
|
| 44 |
|
|
end combinational;
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.