signal assigment

Discussion in 'VHDL' started by ZOLVEZ, Oct 11, 2007.

  1. ZOLVEZ

    ZOLVEZ

    Joined:
    Oct 2, 2007
    Messages:
    8
    Likes Received:
    0
    Hi


    I want to do the next:


    library IEEE;
    use IEEE.STD_LOGIC_1164.ALL;
    use IEEE.STD_LOGIC_ARITH.ALL;
    use IEEE.STD_LOGIC_SIGNED.ALL;

    entity multiplicador is
    Port ( a : in STD_LOGIC_VECTOR (15 downto 0);
    b : in STD_LOGIC_VECTOR (15 downto 0);
    clk : in STD_LOGIC;
    sal : out STD_LOGIC_VECTOR (15 downto 0));
    end multiplicador;

    architecture Behavioral of multiplicador is
    signal tmp : std_logic_vector (31 downto 0);
    begin

    process (clk, a, b)
    begin
    if clk= '1' and clk'event then
    tmp <= a*b;
    end if;
    end process;

    sal<= tmp(23 downto 8 ) ; -- Here is the problem
    end Behavioral;



    How you see It’s a simple multiplier, but I want to truncate some bits of the vector ‘tmp’ to assign to the vector ‘sal’. I tried to do this in Xilinx ISE 8.1i software, but it doesn't sinthesize it. Just the following message appear:


    WARNING:Xst:646 - Signal <tmp<31:24>> is assigned but never used.
    WARNING:Xst:646 - Signal <tmp<7:0>> is assigned but never used.



    I would like to know some way to realize and sinthesize the code above. Any suggestions to ZOLVEZ@hotm.... Thanks a lot before hand
     
    Last edited: Oct 11, 2007
    ZOLVEZ, Oct 11, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Seb
    Replies:
    12
    Views:
    1,012
    Mike Treseler
    Mar 17, 2005
  2. Dean Mitchell
    Replies:
    4
    Views:
    546
    Attila Feher
    Aug 27, 2003
  3. Thomas Philips
    Replies:
    4
    Views:
    519
    Duncan Booth
    Jun 22, 2004
  4. yopwojtek

    inherit assigment operator

    yopwojtek, Jul 23, 2005, in forum: C++
    Replies:
    2
    Views:
    612
    yopwojtek
    Jul 23, 2005
  5. Adrian
    Replies:
    10
    Views:
    630
    Robert Bauck Hamar
    Dec 5, 2006
  6. viscroad@gmail.com

    function/method assigment

    viscroad@gmail.com, Apr 13, 2007, in forum: Python
    Replies:
    5
    Views:
    416
    7stud
    Apr 13, 2007
  7. Lorenzo Di Gregorio

    "once" assigment in Python

    Lorenzo Di Gregorio, Sep 14, 2007, in forum: Python
    Replies:
    11
    Views:
    580
    Steve Holden
    Sep 18, 2007
  8. ZOLVEZ

    assigment of signals

    ZOLVEZ, Oct 4, 2007, in forum: VHDL
    Replies:
    0
    Views:
    474
    ZOLVEZ
    Oct 4, 2007
Loading...