FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-28-2005, 04:13 PM
valentin tihomirov
Guest
 
Posts: n/a
Default Specifying vector length in the function output

it seems that the following code will not work

function F() return std_logic_vector (1 to 10) -- error

while the following is compiled

function F() return std_logic_vector

So, I would like to highlight the length to the user looking at package
interface part.


Reply With Quote
  #2 (permalink)  
Old 06-28-2005, 07:52 PM
Colin Marquardt
Guest
 
Posts: n/a
Default Re: Specifying vector length in the function output

"valentin tihomirov" <[email protected]> writes:

> it seems that the following code will not work
>
> function F() return std_logic_vector (1 to 10) -- error

[...]
> So, I would like to highlight the length to the user looking at package
> interface part.


Just define a subtype.

HTH,
Colin
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i pass a real function to the output port shwetika Verilog 2 06-06-2008 06:18 AM
Need standard function to do (Bool and Vector) Weng Tianxiang VHDL 2 06-21-2005 01:01 AM
How to use file input output function? Jasmine Hau FPGA 0 02-16-2005 02:50 AM
How to handle varied length of output signal systolic VHDL 3 10-21-2004 10:03 PM
huh?? compare problem with vector length?? JT Verilog 3 10-24-2003 03:19 PM


All times are GMT +1. The time now is 11:56 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved