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
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
@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
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
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 %
Related questions to convert integer to std_logic_vector in vhdl
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 %
VHDL BASIC Tutorial - Array, Memory, SRAM :
Ratings : 59 %
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 %
@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 %
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 %
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 %