Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Re: cloning textio lines

 
Thread Tools Search this Thread
Old 06-19-2009, 06:53 PM   #1
Default Re: cloning textio lines


Gerhard Hoffmann wrote:

> Is there an easy way to clone a textio line including its contents?


The words 'easy' and 'textio' belong together.
I declare vhdl constant arrays instead.

> Must be a standard task.
> Probably I'm missing something obvious.


The 'obvious' way to do variable strings is with access types,
but this is not easy either.

-- Mike Treseler

_________________________________________________
procedure verify is
type string_p is access string;
variable string_v : string_p;
begin
string_v := new string'(integer'image(to_integer(expect_v)));
report "___Step " & integer'image(step_v);
match_v := expect_v = unsigned(readData_s);
pass_v := pass_v and match_v;
step_v := step_v + 1;
ck : if match_v then
boring : if verbose_g then
report "_________saw " & string_v.all & " as expected";
end if boring;
else
report "__________Expected byte is " & string_v.all;
report "__________Actual bus data is "
& integer'image(to_integer(unsigned(readData_s)))
severity error;
report "______________________________WIRE STATE IS "
& wire_t'image(wire_g);
die;
end if ck;
end procedure verify;


Mike Treseler
  Reply With Quote
Old 06-19-2009, 06:57 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: cloning textio lines --typo
Mike Treseler wrote:

> The words 'easy' and 'textio' belong together.

^
don't


Mike Treseler
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Horizontal Lines on Cartoon dvd's Roger Hammonds DVD Video 1 10-07-2006 03:43 PM
Is there a tool to locate duplicate lines in a file ? rofarmer Software 0 08-17-2006 06:58 PM
Walt Disney Treasures - ON THE FRONT LINES - DVD REVIEW Mike McGee DVD Video 25 05-13-2004 07:06 PM
JVC HRXVC44U DVD/VCR combo and seeing scan lines Eric B DVD Video 0 05-05-2004 07:45 PM
Open Range - screwed up lines at beginning of DVD HiTechMan DVD Video 2 01-22-2004 03:27 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46