RE: Perl for HDL Verification

2009-07-11 Thread David Christensen
Soham Das wrote: > Can anyone who has worked in Hardware Designing domain, particularly > HDL and RTL design, tell me how exactly is Perl used to generate > testbenches and verification work. I used Perl for testing Verilog designs back in ~2002. Going from memory, I wrote my designs and test be

Re: Difference with hash ref

2009-07-11 Thread Steve Bertrand
John W. Krahn wrote: > Steve Bertrand wrote: >> I'm still trying to figure out references... in the below diff, the '+' >> works ok as a passed-in hashref to an outside module, but the '-' does >> not. >> >> $plan_status is *absolutely* a hashref, as I have created it as such by >> hand (and verifi

Re: Difference with hash ref

2009-07-11 Thread John W. Krahn
Steve Bertrand wrote: I'm still trying to figure out references... in the below diff, the '+' works ok as a passed-in hashref to an outside module, but the '-' does not. $plan_status is *absolutely* a hashref, as I have created it as such by hand (and verified it with Data::Dumper). When I pass

Difference with hash ref

2009-07-11 Thread Steve Bertrand
I'm still trying to figure out references... in the below diff, the '+' works ok as a passed-in hashref to an outside module, but the '-' does not. $plan_status is *absolutely* a hashref, as I have created it as such by hand (and verified it with Data::Dumper). When I pass $plan_status without su

Making functions more reusable

2009-07-11 Thread Steve Bertrand
I have numerous methods such as the following. They all perform the same basic function based on the parameter passed in ($name, $key or nothing). I've recently moved out the actual data definition (hash) into a different 'private' function in order to make things easier to read. Now, I want to c

Perl for HDL Verification

2009-07-11 Thread Soham Das
Hi All, For the disclaimers: I am new to Perl[as I was some 7 months back :) ] and to get things rolling, I know just a bit of it. Hence the question, might appear a bit, unpolished. Can anyone who has worked in Hardware Designing domain, particularly HDL and RTL design, tell me how exactly i

Re: Best way to mix two lists

2009-07-11 Thread Matteo Riva
On Fri, Jul 10, 2009 at 9:25 PM, Gunnar Hjalmarsson wrote: > You can use a hash slice. > >   �...@{ $data{$key} }{ @fields } = split /:/, $val; Thanks Gunnar, your suggestion is enlightening. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...