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 > Defined ranges
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 6063 of 6417
Post > Topic >>

Defined ranges

by rickman <gnuarm@[EMAIL PROTECTED] > Jun 4, 2008 at 09:30 PM

I am using a subtype to define a range as used in a SLV declaration.

  subtype  INST_RNG		is natural range 23 downto 0;
  signal CTPCurCmd		: std_logic_vector (INST_RNG);

But if I try to use the same subtype to define a sub-range in an
assignment, I get this error message.

# Error: COMP96_0263: IRIG_FPGA_TB.vhd : (504, 68): Type names are not
allowed as primaries.


Is this just a limitation of the tool I am using or is this a language
issue?  Is there a better way to define ranges so the parts of an
array can be dealt with symbolically?

Rick
 




 3 Posts in Topic:
Defined ranges
rickman <gnuarm@[EMAIL  2008-06-04 21:30:06 
Re: Defined ranges
kennheinrich@[EMAIL PROTE  2008-06-05 04:15:49 
Re: Defined ranges
rickman <gnuarm@[EMAIL  2008-06-05 05:51:08 

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 16:28:17 CST 2008.