How to convert integer to std_logic_vector in vhdl?

Asked by peace

Report
in progress 107
7 Answers 341 views

Leave a reply to peace : convert integer to std_logic_vector in vhdl


Answers ( 7 )

  1. As LoneTech says, use ieee.numeric_std is your friend. You can convert a std_logic_vector to an integer, but you'll have to cast it as signed or unsigned first …
    Read More

    Ratings : 29 %   

      
  2. VHDL BASIC Tutorial - Array, Memory, SRAM :

    how to convert integer to std_logic_vector in vhdl

    Ratings : 59 %   

      
  3. In reply to @Bhaumik: library IEEE; use IEEE.STD_LOGIC_1164.ALL; entity SN74LS247 is Port ( BCD_I : in STD_LOGIC_VECTOR (3 downto 0); RBI : in STD_LOGIC;
    Read More

    Ratings : 58 %   

      
  4. @Raphael : thanks for pointing out the mistake.I used xilinx ISE version 10.1. VHDL asserts are used to write intelligent testbenches. For these
    Read More

    Ratings : 39 %   

      
  5. use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; conv_std_logic_vector(7, 9); converts integer 7 to a std_logic_vector with 9 bits. Rgds
    Read More

    Ratings : 39 %   

      
  6. Preliminary Remarks. This is a monthly posting to comp.lang.vhdl containing general information. Please send additional information directly to the editor:
    Read More

    Ratings : 10 %