±
±èÁ¾Áø
Array has a parameter as integer.
But I have a vector data.
I can't convert vector to integer.
Help me.
But I have a vector data.
I can't convert vector to integer.
Help me.
±èÁ¾Áø said:Array has a parameter as integer.
But I have a vector data.
I can't convert vector to integer.
Help me.
SneakerNet said:have you tried this?
LIBRARY ieee;
USE ieee.std_logic_1164.all;
USE ieee.std_logic_arith.all;
ENTITY adder IS
PORT (op1, op2 : IN UNSIGNED(7 DOWNTO 0);
result : OUT INTEGER);
END adder;
ARCHITECTURE maxpld OF adder IS
BEGIN
result <= CONV_INTEGER(op1 + op2);
END maxpld;
USE ieee.std_logic_1164.all;
USE ieee.numeric_std.all;
Neil Zanella said:Perhaps this is because VHDL is a modelling language. When it comes to
For instance, it is not clear to me when integer should be used, and when
vector should be used. It seems that one advantage of using integers is to
be able to address arrays.
model of VHDL programming is to be preferred over the sequential one,
and vice versa.
Furthermore, it is not clear whether VHDL is a truly useful tool in a
programmer's toolbox. For instance many embedded devices can be
programmed in conventional programming languages such as C.
I would like to see some practical applications of VHDL.
Where exactly is VHDL used? And is much designing whith
VHDL required in the real world? Who are the main users
of VHDL? Who is the community of VHDL users and what
are most VHDL users' goals when learning VHDL?
Are there any significanltly complex free VHDL designs out there,
in the same way several free software packages written in other
languages can be found complete with source code on the web?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.