Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

adding two integer arrays in vhdl ...

Status
Not open for further replies.

chillimillii

Newbie level 5
Joined
Sep 26, 2007
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,334
arrays in vhdl

Hi all!
I have to add two 3 x 1 integer arrays in VHDL . I have written the following piece of code ...it gets synthesized but it fails in implement design . I don't know whats the problem with it . can anyione help me with it ....


architecture Behavioral of TEST is
type int_array is array(0 to 3, 0 to 0) of integer range 0 to 7;
signal w,t,u: int_array ;
begin
g1:for i in 0 to 3 generate
h1: for j in 0 to 0 generate
w(i,j) <= t(i,j) + u(i,j);
end generate h1;
end generate g1;
end Behavioral;
 

vhdl adding integer

How can you know that the design fails in implementation, when it has neither input nor output ports?
 

architecture Behavioral of TEST is
type int_array is array(0 to 3, 0 to 0) of integer range 0 to 7;
signal w,t,u: int_array ;
begin
g1:for i in 0 to 3 generate
h1: for j in 0 to 0 generate --error here.what is this "0 to 0"???
w(i,j) <= t(i,j) + u(i,j);
end generate h1;
end generate g1;
end Behavioral;

learn more abt arrays from :
https://vhdlguru.blogspot.com/2010/02/arrays-and-records-in-vhdl.html
 

architecture Behavioral of TEST is
type int_array is array(0 to 3, 0 to 0) of integer range 0 to 7;
signal w,t,u: int_array ;
begin
g1:for i in 0 to 3 generate
h1: for j in 0 to 0 generate --error here.what is this "0 to 0"???
w(i,j) <= t(i,j) + u(i,j);
end generate h1;
end generate g1;
end Behavioral;

learn more abt arrays from :
VHDL coding tips and tricks: Arrays and Records in VHDL

Hello Vinpal

Thank you so much for your messages. Is there any web address to see some videos and learn more about VHDL like as you provided for
Xlinix.

Kind Regards,
Kumar
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top