Search Results

Search: Posts Made By: dll_fpga
1,795
Posted By dll_fpga
Vim function to generate RTL Code(finite state machine) in verilog
Hi I wanted to call the AutoFsm function (given below) in vim to generate a code something like:


**********verilog code to generate *************
always @(posedge clk or negedge rst_n) begin
...
699
Posted By dll_fpga
Perl support in vim
Hi

:.!perl -pe "s/(\w+)/\u\1/g" is working for me.But search and replace with confirmation ie:.!perl -pe "s/(\w+)/\u\1/gc" is not working ...
It is not at all asking for confirmation before the...
1,574
Posted By dll_fpga
It worked fine.Thanks a lot ,i would be grateful...
It worked fine.Thanks a lot ,i would be grateful to u.wasted a lot of time,out of my laziness in specifying the file pointer.
1,574
Posted By dll_fpga
sorry please check my edited code. ...
sorry please check my edited code.

chomp($ARGV[1]);
open(FH1,"<$ARGV[0]");
while(<>){
if ($_=~m/module(\s+)$ARGV[1](\s+)\(/)
print $_;
}
}
close FH1;

im reading from file ARGV[0] while...
1,574
Posted By dll_fpga
chomp($ARGV[1]); open(FH1,"<$ARGV[0]"); ...
chomp($ARGV[1]);
open(FH1,"<$ARGV[0]");
while(<>){
if ($_=~m/module(\s+)$ARGV[1](\s+)\(/)
print $_;
}
}
close FH1;

sorry this is my actual code.made a typo
1,574
Posted By dll_fpga
hi bartus ,Thanks for the reply i tried...
hi bartus ,Thanks for the reply

i tried ~m/module(\s+)$ARGV[1](\s+)\(/ but still not working..I know ARG[0] and ARG[1] are first and second arguments ,ARG[1] was intentionally given in my...
1,574
Posted By dll_fpga
Match in perl not working with ARGV
Hi ,

I need to match module data_tx_dig (

I tried matching
~m/module(\s+)ARGV[1](\s+)\(/ --> (generic code)but is not working.The same is able to match when i provide hardcoded value instead...
1,032
Posted By dll_fpga
vim command for a search
how can i search each line for ROCT and ROCT1.ROCT1 will be always 1 line after ROCT.
Both the patterns will be found at the end of the line (in alternate lines)

<pattern file>
(rising...
1,988
Posted By dll_fpga
summing the digits of a binary nuMBER
please help me write a perl program to find the difference of 1 and zeros of a 6 digit binary number.

eg If input is 111100 expected output +2
if input is 000011 expected...
6
971
Posted By dll_fpga
this too works thanks
this too works thanks
6
971
Posted By dll_fpga
hi chubler, Thanks...I made a silly mistake...:)
hi chubler,
Thanks...I made a silly mistake...:)
6
971
Posted By dll_fpga
hi bala, please let me know which part of...
hi bala,

please let me know which part of the script i should change...can u pls change it ..
6
971
Posted By dll_fpga
Script
I need a perl script which will print the remaining part of the file once it see a particular pattern.here the pattern i need to search is HOLD

#!/usr/bin/perl
if($#ARGV+1==2)
{...
1,454
Posted By dll_fpga
hi bala, The problem is ARGV[0] will not...
hi bala,

The problem is ARGV[0] will not work in the contest of getopt...
i have tried to simply print the ARGV values...but not succesful
861
Posted By dll_fpga
merging of 2 files in a particular pattern
how can i merge to files containing some random sort of numbers to a separate file ..


file1
11111
10111
11011

file2
00000
01010
10101

file 3
11111_00000
10111_01010
11011_10101
...
1,087
Posted By dll_fpga
Displaying a number in binary using perl
printf FH2" 3'b%b : begin\n",$i;
where i is an integer in the loop
is displaying
3'b1 : begin

expected output was
3'b001 : begin
1,454
Posted By dll_fpga
./GEN_SCR.pl -f...
./GEN_SCR.pl -f ${REP_PATH}/FUNCTIONAL/wide1c_1.0V/max/qor.rpt -o ${REP_PATH}/FUNCTIONAL/GEN2_wide1c_1.0V_max.csv

how can i extract and see if the bold argument shown above is max or min inside...
950
Posted By dll_fpga
reg expression in perl
./GEN_SCR.pl -f ${REP_PATH}/FUNCTIONAL/wide1c_1.0V/max/qor.rpt -o ${REP_PATH}/FUNCTIONAL/GEN2_wide1c_1.0V_max.csv



where GEN_SCR.pl is as below...i need to check whether max or min is coming...
1,454
Posted By dll_fpga
reg expression in perl
how to uniquely match each of the words seperated by / in perl



${REP_PATH}/FUNCTIONAL/wide1c_1.0V/max/qor.rpt
https://www.unix.com/images/misc/progress.gif
2,553
Posted By dll_fpga
reg expression in perl
how to uniquely match each of the words seperated by / in perl



${REP_PATH}/FUNCTIONAL/wide1c_1.0V/max/qor.rpt
1,321
Posted By dll_fpga
Reg expression
Please let me understand this reg expression
(\s+')(.*)('\s+)(.)(.*)(\/.*)/)

i have doubt in the below 2.I'm not understanding why back-tick used?
(\s+') and ('\s+)
33,833
Posted By dll_fpga
hi methyl, remote server OS is > uname...
hi methyl,

remote server OS is
> uname -a
Linux wt-nec2 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux

windows 7 is my OS...vnc is installed in it...im...
33,833
Posted By dll_fpga
hi methyl, Im using a vnc application in...
hi methyl,
Im using a vnc application in windows to connect to a unix server at my work place...
i need to take some file in the remote PC to my windows system using FTP function...
im running...
33,833
Posted By dll_fpga
hi methyl, Please give me the command for...
hi methyl,
Please give me the command for getting this...
33,833
Posted By dll_fpga
hi pkk, i have used put instead of get...
hi pkk,
i have used put instead of get ...still the file is not coming to windows..

pls see the below log

++++++++++++++++++++++++++

Connected to 10.29.45.11.
220 (vsFTPd 2.0.1)
530...
Showing results 1 to 25 of 50

 
All times are GMT -4. The time now is 03:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy