Total Pageviews

Friday, December 18, 2009

script links

script links
agraja.wordpress.com

Thursday, May 14, 2009

Verilog port maping style

.porta(1'b0,2'b01,4'h0xa,{1'b0,c[1],d[4],2'b11,16'h0xaabb})

using AWK utility - simple one

sh remain awk '{print "gvim "$0"/transcript";}'
gvim atest000/transcript
gvim atest001a/transcript
gvim btest002a/transcript
gvim ctest002a/transcript
gvim atest005c/transcript
gvim ctest007d/transcript
gvim btest007e/transcript
gvim atest008/transcript
gvim btest008/transcript
gvim ctest008/transcript

Saturday, April 4, 2009

Saturday, March 28, 2009

USB basic

USB Basic
USB bus has lots of advantages in comparison to ISA and PCI bus:
Add-in slots are limited on internal PC buses while USB allows up to 127 devices.
Add-ins require opening PC, inviting new problems while USB has standard external connector.
External peripheral connectors (printer,keyboard,mouse,etc.) vary, while USB has one type of connection.
USB connector has just 4 signals - cost saving on board design and cables. For example parallel port uses 25 pins connector.
Peripheral interrupts are limited - sharing required. USB is using polling mechanizm instead.
USB has power line. Peripherals can be powered directly from USB cable in the range of 100 - 500mA.
USB supports hot auto configuration while PCI devices can only get identified during boot time.
USB supports data rates upto 12Mb/s, new standard is going to extend it to 480 Mb/s.

Tuesday, March 3, 2009

6 Soft Skills That Could Land You the Job

WANTED: Payroll Manager with BA in accounting, five years of management experience, extensive knowledge of payroll principles, and a sense of humor.
Wait. Humor? Now you have to reconcile W2s, process checks, and crack up coworkers? Has the job market become that competitive?
Not exactly. Employers seem to demand the moon these days, but they're really looking for candidates who may be easier to work with (assuming they already have the core skills to do the job). That means "soft," or intangible qualities, such as leadership, sense of humor, or "playing well with others," can be a strong competitive advantage for the job seeker. When a search comes down to two systems analysts with similar backgrounds and core competencies, the one who also may be a better "team player," or can "wear many hats," is more likely to get the nod.
Qualities You'll Need
"Today, employers want to see a candidate's ability to show value in the workplace beyond the job description," Stefanie Cross-Wilson, co-president of recruitment and talent management at Hudson, tells Yahoo! HotJobs. "It's the tangible skills or core competencies that get you in the door. It's the soft skills that often get you the job."
Any of these six qualities could give you a competitive edge:
Leadership/Team Building. Leadership skills are not only critical for supervisory positions, but also for candidates who may want rise to positions where they'll give directions to others, experts say.
Team Player. Employers like people who play well with others. Even if the job you seek isn't officially part of a team, an employer may want examples of how you collaborated with people who don't report to you.
Goal-Oriented Self-Starter. This doesn't necessarily require motivating others. While employers don't necessarily want loose canons or mavericks, they do appreciate people who don't need to be told what to do and can set their own tasks and follow through.
Excellent Communicator. No matter what the core job duties are, the ability to write a coherent memo or email, give clear verbal instructions, and help meetings run smoothly -- or, at least, not sabotage meetings -- will probably be needed.
Flexibility/Multi-Tasking Ability. Sometimes employers will call this the "ability to wear many hats." Most professionals have multiple job duties even in the best of times. In an environment rife with layoffs, managers are especially comforted knowing a candidate can take on even unanticipated tasks.
Sense of Humor. Unless you're applying to Comedy Central, you don't have to make them double up laughing, according to John McKee, president and founder of BusinessSuccessCoach.net and author of "Career Wisdom."
"While I don't hear recruiters asking for candidates who can tell a joke well, I do believe that evidence of light-heartedness and/or the ability to lighten up a tough situation is valued, and self deprecation seems to be well-received," McKee says.
Putting the Skills in Play
Other common soft skills demanded on job listings include "time management" (you can get everything done on time), "strong work ethic" (you're not inclined to take three-hour lunches), and "problem solver."
Though you might be able to hint at any of these qualities on your resume, it's really in an interview where you let the skills shine. "At interview time, most hiring managers are digging deeper into core skills, but also evaluating soft skills, which depend on what is necessary for the position," says Lindsay Olson, partner and recruiter at Paradigm Staffing.
You don't have all of these soft skills? Don't worry. Even in today's job market, it's not necessary to be super-human. Cross-Wilson says: "Employers don't expect you to be brilliant at everything. In the interview you can be honest if there is a weakness you have. If you are able to be relaxed and be yourself, they'll see you as authentic."
Build Mini-Stories
Olson suggested that job seekers build "mini-stories" around the soft skills they think would be valuable for the job and share them at the interview. "You should prepare specific examples of how you dealt with a specific task or issue that will help others understand you have skills to solve their problems too."
What if you don't think you have the necessary soft skills to land the job? It's not like you can take a class to boost your sense of humor, but you can ask a mentor or a friend for help in improving, for example, your email etiquette. Many soft skills can be built or improved on the job, experts say. Consider volunteering for more responsibility, or jump at the chance to be on a team, so that you'll have anecdotes to tell on your next interview.

Monday, March 2, 2009

verilog wired OR example

module test_wor();
wor a;
reg b, c;

assign a = b;
assign a = c;

initial begin
$monitor("‰g a = ‰b b = ‰b c = ‰b", $time, a, b, c);
#1 b = 0;
#1 c = 0;
#1 b = 1;
#1 b = 0;
#1 c = 1;
#1 b = 1;
#1 b = 0;
#1 $finish;
end

endmodule


Simulator Output
0 a = x b = x c = x
1 a = x b = 0 c = x
2 a = 0 b = 0 c = 0
3 a = 1 b = 1 c = 0
4 a = 0 b = 0 c = 0
5 a = 1 b = 0 c = 1
6 a = 1 b = 1 c = 1
7 a = 1 b = 0 c = 1

Tuesday, February 17, 2009


CVS Cheat Sheet

Local access (NFS):

Note: the commands listed below assume that CVSROOT is set to the path of your repository

cvs get [flags] module… creates a new working directory (project)
-r tag check out revisions tagged with tag

cvs update [flags] [file…] merge repository changes into local working files
-d build newly added directories (like get does)
-r tag move to revisions tagged with tag
-r branch-tag move to branch tagged with branch-tag
-A return to trunk
-j tag merge changes from tag to branch tip
-j tag1 –j tag2 merge changes from tag1 to tag2

cvs commit [flags] [file…] check local changes into the repository
-m message use the message as change’s log entry

cvs tag [flags] tag [file…] tag current revisions of file… with tag
-d tag remove the tag from all file…
-b create a branch off of current revisions
-F tag overwrite an existing tag of the same name on a different revision

cvs add [flags] file… mark file… for addition
-m message use message for file… description
-k mode where ‘b’ is for binary and ‘kv’ for text

cvs diff [flags] [file…] show local changes to file…
-c provide context diff (human readable)
-r tag compare with revision tagged with tag
-r tag1 –r tag2 compare revisions tagged with tag1 and tag2
anything else passed through to diff command

cvs log [flags] file… show log (history) entries for file…
-h show only log header information for file…

cvs status [flags] file… show local and repository status of file…


Client/Sever access:

setenv CVS_RSH ssh

cvs :ext:cvs.pdx.intel.com:

e.g. cvs –d :ext:cvs.pdx.intel.com:/nfs/site/proj/dt/crt_cvsroot co qea

Note: if you get the error: “cvs command not found”, try the command again after setting “setenv CVS_SERVER /usr/intel/bin/cvs”


NOTES:
If file… is omitted, CVS assumes ‘.’.

As printed by the update command reports:
U filename file updated to repository version
P filename file patched to repository version (essentially the same as U)
M filename file is locally modified (or merged)
C filename file contains a conflict(s) (merge has produced this)
R filename file marked for removal
A filename file marked for addition
? filename file is not under CVS control

Thursday, February 12, 2009

Replace ^M at the end of line with blank

To remove the ^M characters at the end of all lines in vi, use:
:%s/^V^M//g
The ^v is a CONTROL-V character and ^m is a CONTROL-M. When you type this, it will look like this:
:%s/^M//g
In UNIX, you can escape a control character by preceeding it with a CONTROL-V. The :%s is a basic search and replace command in vi. It tells vi to replace the regular expression between the first and second slashes (^M) with the text between the second and third slashes (nothing in this case). The g at the end directs vi to search and replace globally (all occurrences).

Replace ^M at the end of line with blank

To remove the ^M characters at the end of all lines in vi, use:
:%s/^V^M//g
The ^v is a CONTROL-V character and ^m is a CONTROL-M. When you type this, it will look like this:
:%s/^M//g
In UNIX, you can escape a control character by preceeding it with a CONTROL-V. The :%s is a basic search and replace command in vi. It tells vi to replace the regular expression between the first and second slashes (^M) with the text between the second and third slashes (nothing in this case). The g at the end directs vi to search and replace globally (all occurrences).

Monday, February 9, 2009

unix commands

To include:
· "Quick hits" due today
· http://nti.intel.com/engagenti
· Vi trick of the week - by Paul, every Tuesday
· "p - Puts buffer (n = 1-9 system buffer)
· "dd - deletes to named buffer (char = a-z user defined buffers)
· "p - puts named buffer (char = a-z user defined buffers)
· :n,ns/// - perform substitution on set of lines (N to N)
· ma - mark current position (with 'a')
· :'a,'bs/// - perform substitution on set of lines (mark to mark)
· :%s/// - perform substitution on all lines
· `a - go back to exact marked character
· 'a - go back to marked line
· :%s/^V^M//g - remove all MS-carriage returns from Unix file ("^M" = )
· ctags?

Sunday, February 1, 2009

Simple perl script check module name = file name

#!/usr/bin/perl
open(LIST, './filelist') die "can't open list.txt $!";
while () {
$input = $_;
chop($input);
chop($input);
chop($input);
chomp($input);
@test = split(/\//);
$input1=$test[4];
chop($input1);
chop($input1);
chop($input1);
chomp;#system("echo $input1 ");system("echo \" $input1 : `grep \"module $input1\" ./$_wc -l` \" ");
}
close LIST;