Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Not used inputs - what to do with it

Reply
Thread Tools

Not used inputs - what to do with it

 
 
MJ
Guest
Posts: n/a
 
      12-17-2007
Hello,

I have some unused bits of a bit vector in my entity.
This bit vector is the data bus and I do not use all bits of this bus.

Here is a example what I want to do:

entity top is
Port ( clk : in STD_LOGIC;
rst : in STD_LOGIC;
we_n: in STD_LOGIC;
output : out STD_LOGIC_VECTOR (23 downto 0);
data : in STD_LOGIC_VECTOR (31 downto 0));
end top;
architecture Behavioral of top is

signal timing_in : std_logic_vector(23 downto 0);

begin
timing_in(2 downto 0) <= data(2 downto 0);
timing_in(5 downto 3) <= data(6 downto 4);
timing_in(8 downto 6) <= data(10 downto ;
timing_in(11 downto 9) <= data(14 downto 12);
timing_in(14 downto 12) <= data(18 downto 16);
timing_in(17 downto 15) <= data(22 downto 20);
timing_in(20 downto 1 <= data(26 downto 24);
timing_in(23 downto 21) <= data(30 downto 2;

PROCESS(clk, rst)
BEGIN
IF rst = '1' then
output <= (others => '0');
ELSIF (clk'EVENT AND clk = '1') THEN
IF(we_n = '0') THEN
output <= timing_in;
END IF;
END IF;
END PROCESS;

end Behavioral;

What can I do to avoid warnings that the input signal data(3),
data(7) ... is not used?
Of cours I can split the bus in elements in the entity but I do not
like this solution.
If there Is a known discussion about this issue? Then a link would be
helpful.

Thanks for your help.

Markus Jank
 
Reply With Quote
 
 
 
 
Symon
Guest
Posts: n/a
 
      12-17-2007
"MJ" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I have some unused bits of a bit vector in my entity.
> This bit vector is the data bus and I do not use all bits of this bus.
>
> What can I do to avoid warnings that the input signal data(3),
> data(7) ... is not used?
>
> Thanks for your help.
>

Hi Markus,
Just ignore them? A lot of synthesis/simulation tools nowadays let you block
warnings you don't care about.
HTH., Syms.


 
Reply With Quote
 
 
 
 
Mike Treseler
Guest
Posts: n/a
 
      12-17-2007
MJ wrote:

> What can I do to avoid warnings that the input signal data(3),
> data(7) ... is not used?


It's a valid warning. Ignore it or fix it.
I would eliminate the "data" signal and
make "timing_in" an input port matching "output" exactly,
and do the data slicing in the port map.

-- Mike Treseler
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Button inputs not being posted to server Martin HTML 7 05-06-2011 11:18 PM
google URL-based searchplugins can have *two* inputs as_q= q= Splibbilla Firefox 0 04-17-2005 11:15 PM
ISE problem - multiplier inputs on schematic are not assigned correctly. AndyAtHome VHDL 1 05-25-2004 12:48 PM
pullup on inputs Max VHDL 0 09-25-2003 09:49 AM
Coding style to prioritize certain inputs Willem Oosthuizen VHDL 5 09-04-2003 05:17 PM



Advertisments