Thursday, December 13, 2012

Code Coverage as it relates to hardware design verification

In talking about both Code Coverage (fully automatic at least to start out with) and Functional Coverage (which involves the capture of properties to be tested/proven and/or the creation of coverage points/bins/crosses), it is nice to have an overview of Code Coverage.

I liked the following so far:

http://www.bullseye.com/coverage.html  (Not further shown here due to prominent threatening notices that suggest an overly-litigious author, but still, good content  :-) )

and this, as a high-level description:

"

Code Coverage

Code coverage is generated automatically from design source code. This verification metrics does not indicate correctness of your design – but measures how code is exercised while running regression test suites. If coverage is missing, it usually indicates either unused code or incomplete tests.

The following types of code coverage are available in Aldec Simulators:

  • Statement coverage – examines each executable statement and counts the number of times it has been executed.
  • Branch coverage – examines branches of each conditional statement and counts true or false conditions that have been met by a branch during simulation.
  • Path coverage – examines the order of conditional statements execution and indicates whether all possible execution sequences have been verified by a testbench.
  • Expression coverage – monitors logical expressions and indicates whether all possible states of a logical expression were exercised.
  • Toggle coverage – monitors signals logic value changes and indicates signals that were not exercised properly by a testbench." ...

Verification Planning and management, on Verification Academy, coverage strategy overviews (somewhat System-Verilog centric)

Verification Planning and Management

Verification Planning and Management Course | Subject Matter Expert - Peet James | Planning, Measurement & Analysis Topic

The verification of any design of size is a daunting task that requires successful forethought in the form of formulating, architecting, strategizing and documenting an overall verification blueprint. The value of creating such a blueprint at the start of a project has been proven out through gathered metrics of successful projects. This verification planning and management (VPM) course is a 3 part, 90 min introduction towards creating such a verification blueprint.

The goal of verification planning and management is to architect an overall verification approach, and then to document that approach in a family of useful, easily extracted, maintainable verification documents that will strategically guide the overall verification effort so that the most amount of verification is accomplished in the allotted time. The aim of this course is to define terms, logically divide up the verification effort, and lay the foundation for actual verification planning and management on a real project. This material is introductory only, as it is a modification of the first few presentations an entire set of over 20 VPM presentations/discussions that are custom applied to an actual project where they guide the creation of verification documentation and implementation.

You are encouraged to first view Evolving Verification Capabilities by Harry Foster that provides the framework for all of the Academy courses.


Sessions

Why Plan?

Why Plan? Session | Subject Matter Expert - Peet James | Verification Planning and Management Course

This session moves beyond general fear based justifications for increased verification efforts to logical reasons for why verification typically is more overall effort than the actual design.

Why It's Hard

Why It's Hard? Session| Subject Matter Expert - Peet James | Verification Planning and Management Course

This session covers seven historical reasons as to why the overall verification effort and verification planning in general is difficult.

Plan of Attack

Plan of Attack Session | Subject Matter Expert - Peet James | Verification Planning and Management Course

This session goes towards dividing up all that work into some logical categories and coming up with a plan of attack for overall verification success.





https://verificationacademy.com/courses/verification-planning-and-management

Wednesday, December 12, 2012

Smarter: Google or LinkedIn? Principle Engineer: Auugggh! Fix It! No such title! , etc...

Further proof that Google/Gmail is smarter than LinkedIn:
Gmail:
Did you mean: principal engineer no such title
LinkedIn:
Looking for Principle Engineer candidates? Post your Principle Engineer job on LinkedIn.


Also, it's now up to 9100+ current or former "Principle Engineer"s in my LinkedIn!   Double Auuggh!
...
[Last post]
[Now it's 8,500 !  Aughhhh!!!!]
What it says to me when I see "Principle Engineer" on a resume:
"Not only am I an engineer that cannot spell, I also cannot spell even when it truly matters"   :-)

6,300 People in my LInkedIn network *can* be wrong... (you might see fewer):


prin·ci·ple/ˈprinsəpəl/Noun

1. A fundamental truth or proposition that serves as the foundation for a system of belief or behavior or for a chain of reasoning.
2. A rule or belief governing one's personal behavior.

Another Public Service Announcement from 
Connie L. O'Dell
Principal Engineer and Spelling ****
c.odell@co-consulting.net
303-641-5191
_____________________________________________
CO Consulting - Boulder, CO - http://co-consulting.net

Tuesday, December 11, 2012

Conditional Parts of Makefiles, Gnu Make, courtesy of mit.edu

I found it hard to understand in detail the exact legal syntax of  the Makefile conditionals, and the code that goes inside of them, and this was the clearest explanation I found on the web.

Conditional Parts of Makefiles

A conditional causes part of a makefile to be obeyed or ignored depending on the values of variables. Conditionals can compare the value of one variable to another, or the value of a variable to a constant string. Conditionals control what make actually "sees" in the makefile, so they cannot be used to control shell commands at the time of execution.

Example of a Conditional

The following example of a conditional tells make to use one set of libraries if the CC variable is `gcc', and a different set of libraries otherwise. It works by controlling which of two command lines will be used as the command for a rule. The result is that `CC=gcc' as an argument to make changes not only which compiler is used but also which libraries are linked.

libs_for_gcc = -lgnu
normal_libs =

foo: $(objects)
ifeq ($(CC),gcc)
        $(CC) -o foo $(objects) $(libs_for_gcc)
else
        $(CC) -o foo $(objects) $(normal_libs)
endif
This conditional uses three directives: one ifeq, one else and one endif.
The ifeq directive begins the conditional, and specifies the condition. It contains two arguments, separated by a comma and surrounded by parentheses. Variable substitution is performed on both arguments and then they are compared. The lines of the makefile following the ifeq are obeyed if the two arguments match; otherwise they are ignored.
The else directive causes the following lines to be obeyed if the previous conditional failed. In the example above, this means that the second alternative linking command is used whenever the first alternative is not used. It is optional to have an else in a conditional.
The endif directive ends the conditional. Every conditional must end with an endif. Unconditional makefile text follows.
As this example illustrates, conditionals work at the textual level: the lines of the conditional are treated as part of the makefile, or ignored, according to the condition. This is why the larger syntactic units of the makefile, such as rules, may cross the beginning or the end of the conditional.
When the variable CC has the value `gcc', the above example has this effect:

foo: $(objects)
        $(CC) -o foo $(objects) $(libs_for_gcc)
When the variable CC has any other value, the effect is this:

foo: $(objects)
        $(CC) -o foo $(objects) $(normal_libs)
Equivalent results can be obtained in another way by conditionalizing a variable assignment and then using the variable unconditionally:

libs_for_gcc = -lgnu
normal_libs =

ifeq ($(CC),gcc)
  libs=$(libs_for_gcc)
else
  libs=$(normal_libs)
endif

foo: $(objects)
        $(CC) -o foo $(objects) $(libs)

Syntax of Conditionals

The syntax of a simple conditional with no else is as follows:

conditional-directive
text-if-true
endif
The text-if-true may be any lines of text, to be considered as part of the makefile if the condition is true. If the condition is false, no text is used instead.
The syntax of a complex conditional is as follows:

conditional-directive
text-if-true
else
text-if-false
endif
If the condition is true, text-if-true is used; otherwise, text-if-false is used instead. The text-if-false can be any number of lines of text.
The syntax of the conditional-directive is the same whether the conditional is simple or complex. There are four different directives that test different conditions. Here is a table of them:

ifeq (arg1, arg2)
ifeq 'arg1' 'arg2'
ifeq "arg1" "arg2"
ifeq "arg1" 'arg2'
ifeq 'arg1' "arg2"
Expand all variable references in arg1 and arg2 and compare them. If they are identical, the text-if-true is effective; otherwise, the text-if-false, if any, is effective.Often you want to test if a variable has a non-empty value. When the value results from complex expansions of variables and functions, expansions you would consider empty may actually contain whitespace characters and thus are not seen as empty. However, you can use the strip function (see section Functions for String Substitution and Analysis) to avoid interpreting whitespace as a non-empty value. For example:
ifeq ($(strip $(foo)),)
text-if-empty
endif
will evaluate text-if-empty even if the expansion of $(foo) contains whitespace characters.
ifneq (arg1, arg2)
ifneq 'arg1' 'arg2'
ifneq "arg1" "arg2"
ifneq "arg1" 'arg2'
ifneq 'arg1' "arg2"
Expand all variable references in arg1 and arg2 and compare them. If they are different, the text-if-true is effective; otherwise, the text-if-false, if any, is effective.
ifdef variable-name
If the variable variable-name has a non-empty value, the text-if-true is effective; otherwise, the text-if-false, if any, is effective. Variables that have never been defined have an empty value.Note that ifdef only tests whether a variable has a value. It does not expand the variable to see if that value is nonempty. Consequently, tests using ifdef return true for all definitions except those like foo =. To test for an empty value, use ifeq ($(foo),). For example,
bar =
foo = $(bar)
ifdef foo
frobozz = yes
else
frobozz = no
endif
sets `frobozz' to `yes', while:
foo =
ifdef foo
frobozz = yes
else
frobozz = no
endif
sets `frobozz' to `no'.
ifndef variable-name
If the variable variable-name has an empty value, the text-if-true is effective; otherwise, the text-if-false, if any, is effective.
Extra spaces are allowed and ignored at the beginning of the conditional directive line, but a tab is not allowed. (If the line begins with a tab, it will be considered a command for a rule.) Aside from this, extra spaces or tabs may be inserted with no effect anywhere except within the directive name or within an argument. A comment starting with `#' may appear at the end of the line.
The other two directives that play a part in a conditional are else and endif. Each of these directives is written as one word, with no arguments. Extra spaces are allowed and ignored at the beginning of the line, and spaces or tabs at the end. A comment starting with `#' may appear at the end of the line.
Conditionals affect which lines of the makefile make uses. If the condition is true, make reads the lines of the text-if-true as part of the makefile; if the condition is false, make ignores those lines completely. It follows that syntactic units of the makefile, such as rules, may safely be split across the beginning or the end of the conditional.
make evaluates conditionals when it reads a makefile. Consequently, you cannot use automatic variables in the tests of conditionals because they are not defined until commands are run (see section Automatic Variables).
To prevent intolerable confusion, it is not permitted to start a conditional in one makefile and end it in another. However, you may write an include directive within a conditional, provided you do not attempt to terminate the conditional inside the included file.

Conditionals that Test Flags

You can write a conditional that tests make command flags such as `-t' by using the variable MAKEFLAGS together with the findstring function (see section Functions for String Substitution and Analysis). This is useful when touch is not enough to make a file appear up to date.
The findstring function determines whether one string appears as a substring of another. If you want to test for the `-t' flag, use `t' as the first string and the value of MAKEFLAGS as the other.
For example, here is how to arrange to use `ranlib -t' to finish marking an archive file up to date:

archive.a: ...
ifneq (,$(findstring t,$(MAKEFLAGS)))
        +touch archive.a
        +ranlib -t archive.a
else
        ranlib archive.a
endif
The `+' prefix marks those command lines as "recursive" so that they will be executed despite use of the `-t' flag. See section Recursive Use of make.


GNU Make - Conditional Parts of Makefiles

'via Blog this'

Windows User's Guide To Mac OS X Leopard - YouTube



Windows User's Guide To Mac OS X Leopard - YouTube

'via Blog this'

Monday, December 10, 2012

Productively Deal with an Enemy at Work? [courtesy of thoughtleadersllc.com]

I do hear from people that have very negative/combative people to deal with, even in the workplace, which is supposed to be a professional atmosphere.  
If that's true for you, then this column is for you...  :-)
---------------------------------------------------------------------------------------------------------------------------------------------------------------

We all have enemies. For most of us, they’re a drain on our energy, focus, and time. But if you approach your enemies differently, they can make you much better and stronger than you already are. Allow me to illustrate.
I hate Navy. I’m sick of them winning the Army-Navy football game for the last (I’m not gonna say it) years. ...
I’m sure they’ve learned a few things about how to productively channel that anger into healthy endeavors. Perhaps you can learn a few things as well from the process of dealing with an enemy, directing your anger, and coming out on top.
We all have enemies. Some of us have a lot of them. But when we spend our time and energy focused on attacking them and counterattacking their inevitable strikes back, I’d submit we’re the ones losing. In getting us to attack, our enemy has taken us away from productive pursuits. They’ve hung a dark cloud over our days. They’ve drained us of some energy that would be better served elsewhere. They’ve also made us appear hot-headed and little in the whole process. Even if we win the fight, we lose – on multiple fronts.
There’s a better way to approach this.
Step Outside the Conflict
We get sucked into the conflict with that coworker or boss. Attack brings counterattack. The spiral begins. But I’ll bet you nine times out of ten if you step away from the conflict for a few moments/hours/days you’ll see how small and petty the issue being fought over likely is. Without regaining this perspective, you’re doomed to get bloodied and bruised in a battle that’s not worth fighting. On top of that, you might miss an easy solution to the problem because you’re too busy throwing punches.
Be the Bigger Person
Your enemy is going to take shots at you no matter what. The defining moment comes not when the shot lands but in how you react to it. You either get just as childish or mean and attack back or you try to take the high road. You ignore the insult. You laugh off the verbal slight. You kill them with kindness. Those around you will take note of how each of the combatants are “showing up” and if you’re being nothing but professional, it’s hard for you to look bad.
Channel Your Energy Productively
Now that you’re not enmeshed in the deep battle and daily fray, you probably have some time on your hands as well as some additional energy. Direct that time and energy into productive pursuits. Get your work done early and take some time off. Launch that lower priority project you’ve been dying to dig into. Spend some time coaching and mentoring your team. Go work out or read a book. By investing that newly found energy in productive activities, you’re bettering yourself (and likely driving your enemy crazy that they’re not getting to you).
Extend the Olive Branch
The best way to be the bigger person is to seek to set differences aside and create a positive environment. If your enemy is all fired up about continuing the conflict, they’re not going to be the one to reach out and end hostilities. That leaves the task to you. Take them out to lunch. Buy them a beer (unless they’re an angry drunk in which case get them a cream soda). Tell them you’d like to work with them more productively and end the conflict. Ask what you can do to change the way you show up and LISTEN when they tell you what’s wrong. Make a note of any changes you’d like to make and try to begin making them the next day. Also feel free to ask for a few changes on their part as well – if you ask for too many changes, they’ll take it as an attack and it’s on like Donkey Kong again.
Hopefully we can all take this approach to managing conflict and dealing with enemies. Because in the end, we all want the same things – for everyone to be productive, happy, and to get along and FOR NAVY TO LOSE A FREAKIN’ FOOTBALL GAME TO ARMY!
GO ARMY! BEAT NAVY!

  1. ros says:
    As long as this is a sincere gesture, this is effective…if it is just for window dressing, the “enemy” and your peers will see right through it and you will lose “character standing” in their eyes
  2. Stomphorst says:
    Very good and useful article, have encountered many times running into the spiral during my active professional life, i am retired now however in this life although, the wisdom from the article still valid and to be applied..
    Thank you.
  3. Julie Darmon says:
    I thought you would find this an interesting read.
  4. Richard says:
    This may work with lower level subordinates, co-workers on the same level but it doesn’t work very well with narcissist bosses. I actually bought lunch for my boss after we had a disagreement on an issue. Things got better for a little while I played along. He later tried to get me to buy in on an unethical activity which I held stedfast on and reported accordingly. One year later I received notice that my job was being eliminated. Some enemies that have the power strike back hard. Needless to say, I kept my job and the citizens fired him along with his boss.
  5. Mark Bellamy says:
    Article – well done. I’d just add don’t let yourself get sucked into these type situations by staff wanting you to fight the fight they couldn’t win. That’s a resource drain!
  6. Great article! However, I would say that it really depends on the boss you have. If you had had my former director, you would have thrown the towel and run away.




















































... More at:

How to Productively Deal with an Enemy at Work:

'via Blog this'