微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 天线设计和射频技术 > arrays in vhdl

arrays in vhdl

时间:04-07 整理:3721RD 点击:
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;

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 :
http://vhdlguru.blogspot.com/2010/02...s-in-vhdl.html

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

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top