Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Electronic Equipment > VHDL > How to "or" a g...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 6070 of 6417
Post > Topic >>

How to "or" a generic array of std_logic_vector ?

by HansWernerMarschke@[EMAIL PROTECTED] Jun 7, 2008 at 12:17 PM

I have an array of std_logic_vector.

type array_of_std_logic_vector is array (0 to
number_of_rotors_array-1) of std_logic_vector(0 to
data_width_array-1);
signal data_out_array       : array_of_std_logic_vector;

I want to "or" the "bits" of std_logic_vector for each element of the
vector like this.
data_out(i) shall be '1' if one of the elements of the vector has set
this bit to one.

data_out(0) <=3D '1' when unsigned(data_out_array(0)) /=3D 0;
data_out(1) <=3D '1' when unsigned(data_out_array(1)) /=3D 0;

The problem is that number_of_rotors and although data_width_array are
generic.

So, what is the solution ?

Thank=B4s for help
 




 10 Posts in Topic:
How to "or" a generic array of std_logic_vector ?
HansWernerMarschke@[EMAIL  2008-06-07 12:17:08 
Re: How to "or" a generic array of std_logic_vector ?
Jonathan Bromley <jona  2008-06-07 20:59:58 
Re: How to "or" a generic array of std_logic_vector ?
HansWernerMarschke@[EMAIL  2008-06-07 14:49:54 
Re: How to "or" a generic array of std_logic_vector ?
Mike Treseler <mtresel  2008-06-07 15:14:47 
Re: How to "or" a generic array of std_logic_vector ?
Jonathan Bromley <jona  2008-06-07 23:19:26 
Re: How to "or" a generic array of std_logic_vector ?
Brian Drummond <brian_  2008-06-08 14:17:12 
Re: How to "or" a generic array of std_logic_vector ?
HansWernerMarschke@[EMAIL  2008-06-08 06:20:53 
Re: How to "or" a generic array of std_logic_vector ?
"KJ" <kkjenn  2008-06-08 19:52:10 
Re: How to "or" a generic array of std_logic_vector ?
Andy <jonesandy@[EMAIL  2008-06-09 11:07:52 
Re: How to "or" a generic array of std_logic_vector ?
KJ <kkjennings@[EMAIL   2008-06-09 12:40:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 14:18:53 CST 2008.