Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to use Perl while coding in Verilog?

Status
Not open for further replies.

er_sonal

Newbie level 4
Joined
Apr 15, 2006
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,346
Hi ,
Can anyone tell me how to use Perl while coding in verilog
 

Re: perl

Hi,

Perl is scripting language and verilog id modeling language. So your qn is not so clear for me. Perl can be used for generating verilog code or even for extracting data from dumped files etc.
 

Re: perl

Thanks for the reply.
I wanted to ask ,if my code is in verilog and i want to simulate using PERL.
How to do that.
My tool is VCS
 

perl

what to do is create a perl file which executes the simulator commands using system calls. so, what perl file will be is nothing but a script file which has a sequence of processes to do to generate the waveform.

https://www.altera.com/support/software/nativelink/simulation/vcs/eda_pro_vcs_func_sim.html

look at this link for automatically simulating the design after compiling using VCS.

https://www.perl.com/doc/manual/html/pod/perlfunc/system.html

look at this link on how to invoke system calls using perl.
 

Re: perl

U can try like this in ur perl code.

system ("/tools/ams/bin/eldo temp.cir");

Here I am assuming eldo as the tool name
 

Re: perl

Thanks for the reply.

Can u give a more detailed answer.
For example,if i want to simulate an adder which is written in verilog through
Perl ,Can u tell me how to do that.
My tool is VCS
 

perl

Perl can be used as a wrap around your verilog code. But perl is used as a wrap around only in the backend processes. I have not come across simulating verilog using perl
 

Re: perl

If you have VCS, you can simulate your verilog code directly. What Perl can do is just to automate the flow, for example, you can use Perl to generate some input data (stimulus), call VCS in perl system call, and then let perl to check the result. But basicly, Perl is just used to control the flow. You can verify your verilog code totally without Perl.
 

Re: perl

er_sonal said:
Thanks for the reply.

Can u give a more detailed answer.
For example,if i want to simulate an adder which is written in verilog through
Perl ,Can u tell me how to do that.
My tool is VCS
As other user has pointed out, you won't really need it - as VCS can do it all today. More so with SystemVerilog support. However for education/trial sake, here is a nice link:

**broken link removed**

HTH
Ajeetha, CVC
www.noveldv.com
 

perl

U wanna implement a verilog intepreter in perl language?
 

Re: perl

er_sonal said:
Thanks for the reply.

Can u give a more detailed answer.
For example,if i want to simulate an adder which is written in verilog through
Perl ,Can u tell me how to do that.
My tool is VCS

Hi,

DO you want to automate your simulation using perl i.e run ascript which does simulation and may be takes the results to some other tool. In that case definitely u can use perl script which acts as a wrapper around this.

-manju
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top