Tuesday, July 22, 2008

I wanna be a Rockstar - Nickel Back


Lovely song.
Few lines from the song -

[...]
we all just wanna be big rockstars

And live in hilltop houses driving fifteen cars
The girls come easy and the drugs come cheap
We'll all stay skinny 'cause we just won't eat
And we'll hang out in the coolest bars
In the VIP with the movie stars
Every good gold digger's
Gonna wind up there
Every Playboy bunny
With her bleach blond hair
[...]


Wednesday, July 9, 2008

Philips DVD player unlock region code

ಇತ್ತೀಚಿಗೆ ನಾನು ನನ್ನ ಫಿಲಿಪ್ಸ್ DVD player ನಲ್ಲಿ seventymm ಮೂವಿ ರೆಂಟಲ್ ಸರ್ವಿಸಸ್ ದಿಂದ ತಂದ "The Alamo" DVD ನೋಡಬೇಕೆಂದು ಕುಳಿತಾಗ, ನನಗೆ ಕಂಡದ್ದು "Wrong Region" ಅಂತ ಟಿವಿ ಸ್ಕ್ರೀನ್ ಮೇಲೆ ಬಂದ ಮೆಸೇಜ್.
ನನ್ನದು Philips DVP3166 player. ಇದರ ರಿಜನ್ ಕೋಡ್ ಅನ್- ಲಾಕ್ ಮಾಡಲು ಇಂಟರ್ನೆಟ್ ಮೇಲೆ ಹುಡಿಕಿದಾಗ ಸಿಕ್ಕಿದು ಇದು:
- ಪ್ಲೇಯರ್ ನಲ್ಲಿ ಯಾವದೇ CD/DVD ಇಲ್ಲದ್ದಿದಾಗ, ರಿಮೋಟ್ ಅಲ್ಲಿ setup ಬಟನ್ ಒತ್ತಿ, Preferences ಪೇಜ್ ಗೆ ಹೋಗಬೇಕು
- ಅಲ್ಲಿ, ೧೩೮೯೩೧ (138931) ನಂಬರ್ ಒತ್ತಬೇಕು. ಆಗ, up/down ಬಟನ್ ಉಪಯೋಗಿಸಿ Region Code ನು ೦ (ಸೊನ್ನೆ) ಸೆಲೆಕ್ಟ್ ಮಾಡ್ಬೇಕು.

ಇದು ಮಾಡಿದ ನಂತರ ನನ್ನ DVD ಕರೆಕ್ಟಾಗಿ ಪ್ಲೇ ಆಯಿತು. ಈ ಇನ್ಫೊ ಸಿಕ್ಕ ಜಾಲ ನನ್ನ shared links windowದಲ್ಲಿದೆ.

Tuesday, July 8, 2008

ತುಣುಕುಗಳು

I think I am self-centered. But when I look around, I see people think they are the central characters in their lives.

-----------------------------

gmail ಮಾಡಲಾ ಇಲ್ಲಾ picasa ಕಳಿಸಲಾ

ಹೇಗೆ ಹೇಳಲಿ ನನ್ನ ಮನದ ಹಂಬಲಾ

gtalk ಮಾಡಲಾ ಇಲ್ಲಾ scrap ಮಾಡಲಾ

ಹೇಗೆ ಹೇಳಲಿ ನನ್ನ ಎದೆಯ ತಳಮಳ

----------------------------

Thursday, July 3, 2008

Another upstart to challenge Intel

Transmeta and Montalvo tried. And failed.

Now, its the turn of another upstart - Qualcomm.

In the fight for building a low-power microprocessor intended for MIDs and low cost PCs, Intel - the Microsoft of uP industry- has been able to ward off any competition that has arisen so far; by hook or crook that is irrelevant for the end users anyhow. Hope this time around Qualcomm, together with AMD and ARM, will be able to put up a good fight to Intel's Atom.

Saturday, June 28, 2008

Nice Power point presentation

SlideShare, the PowerPoint hosting company, has announced the results of the "World’s Best Presentation Contest" on their blog.

Of the few that have won the prize, the above presentation is the one I liked the most.

Link via: Digital Inspiration

Passing arguments to ModelSim's do file

I came across a query on the possibility of passing info to modelsim's do file.

The first thing that I thought was it is possible by using command line arguments. Since do file is nothing but a Tcl file (ModelSim uses Tcl as its command language), info as arguments can be passed from the command line.

ex: # tcl <filename.tcl> arg1 arg2 ... argn

Then we can use Tcl's global variables argc and argv to access these arguments inside the tcl file.

So by passing the info as arguments to the do file while invoking vsim command, info can be passed on to the do file.

That is: vsim ... -do "<filename.do> arg1 arg2 ... argn"

But when tried with this logic, the arguments passed were not passed on to the file. But instead I saw the vsim arguments echoed on the screen.

echo "No of command line arguments passed are: $argc"

set i 0

foreach index $argv {

echo "argument #$i: $index"

incr i

}

Adding the above lines of code in the do file (run_def.do) and then passing this file as a -do switch option to vsim command as,

vsim {other switch options} -do "run_def.do test1 test2" &

where test1 and test2 are arguments passed on to the do file. Instead of displaying argc as 3 and test1 and test2 as the arguments, it showed 21 as the argc and echoed the arguments of entire vsim command!

Since ModelSim uses Tcl as its command language, vsim invocation too is like running a tcl script with its switch options as command line arguments. The do file passed as -do switch option is taken to be as an argument passed. The script vsim doesn't consider the do file as a separate script file but as a part of vsim script itself. (It can be assumed that the contents of do file gets appended to vsim script at the end). So it is vsim script that reads the do file and executes the commands within it.

This is why argc and argv displayed the results as detailed above. Now it became simple to pass the info to do file. The info can be passed as a generic option of vsim command (-G switch option), which can then be searched for in the do file if the info is known in prior.

For my requirement, the do file had to execute different set of commands according to the category of testcase to be executed. So the do file needed to know the category of the testcase and based on this info selects the branch (if-else) for execution. Also if no category is passed then no branch is to be selected but run as normal.

If a testcase was part of a category then this info was passed as a generic parameter (with -G switch option) of vsim command. The do file searched for this prior defined generic parameter (in top level TB) within the argument list (argv) and then select the branch for execution.

TX_CATEGORY and RX_CATEGORY were defined as generics of boolean type in the top level TB file and the do file searched for either of these strings for the branch selection.

vsim -GTX_CATEGORY=TRUE {....} -do "<run_def.do>"

In the run_def.do file:

set x [lsearch $argv -GTX_CATEGORY=TRUE ]
set y [lsearch $argv -GRX_CATEGORY=TRUE ]
if "$x != -1" { #TX_Category

...

}

if "$y != -1" { #RX_CATEGORY

...

}

run -all

quit -f

The result of lsearch if successful in finding the string is the index of the argument list, argv, and -1 if it fails in finding the string. Each branch contains different set of commands to be run in prior to run -all command. If neither of the the generics are passed, then no branch gets selected, which is the required case.


Reference : Tcl tutorial

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Basic Idea on the use of do file:

Do file is basically a script file for modelsim to automate tasks like repetitive simulations for debugging purposes. All the commands that can be run on a ModelSim command prompt can be saved in a macro file (usually named with .do extension), and this file can be passed as an argument to vsim command with -do switch option. Once the ModelSim launches and loads the design, this file will be executed as "do <file.do>" automatically.

Since ModelSim uses Tcl for its command language, the do file can have simulation-specific commands as well as Tcl commands which can include graphic interface features, and a general programming interface for building up complex command procedures.

Idea2:

Use vsim command's generic argument switch (-G) to pass a generic to the design (The design is in VHDL.) This generic value can be used in the top level test-bench to create an event by turning high one of the signal meant only for this purpose. Based on the signal event going high, a particular branch should get selected in the do file.

Using 'when' command of Tcl to wait on an event and executing the branch statement is not possible because of Tcl's sequential execution. If the first when statement doesn't trigger then the execution doesn't proceed further. The execution of the further statements/commands never happens.

______________________________________________________

Thursday, June 26, 2008

Achmad - the dead terrorist

 

This video has had an astounding over 52,000,000 views and has a 5-star rating from over 200,000 reviewers.

via - Atanu Dey

Sunday, June 15, 2008

Crazy Record Day

Firefox 3 is planned to be launched worldwide on June 17. Mozilla Corp. calls this a Download Day and wants to set a Guinness World Record for the most downloaded software in 24 hours. Why? I am not so sure, but if the software comes with a tag as the most downloaded, or from another point of view, the most commonly used browser in the world, what's the loss?! This software deserves it.

For this, they also want us to pledge to make 17th the record day. Again why? Crazy!

Friday, May 30, 2008

For the memories.

In Dharwad between 23-25. If good times are not for memories then what are they worth for?

Some of the incidents and things I wanted to note:

- Friend's recollection of his experience when he had to travel second class in a train to reach Bangalore. It was when he was running thru some sort of crisis, which can better remain untold here. His field of work and education is very unlike mine and the rest of us (IT graduates). And so are the difficulties that he comes across... Will have to keep an eye on the development of his future. His experiences make for a good caution for the future and an emotional hard lesson to preach and remember. (If life is not about the reiteration of difficult experiences and surviving thru it, then what meaning does the statement 'My Life' highlight?)

- A night's bachelor party under the candle on a tree top. This tree top hotel was our adda during B.E years. The same tree which must have heard love disappointments and failures all thru those days, now had a different story to listen. Courtesy my friend. The tree is happy. So are we. The party rasied the spirits and we raised the spirits to his future. (Without the high spirits what is it worth partying about?)

- Drive back home after the party on Pulsar. Every time I drive Bajaj Pulsar, I seem to like it even more. Driving at close to 100kph on the road during mid-night gave me a double high. An experience of thrill, when life and death seem just a thin line away, was exhilarating. I somehow feel that the time has come for me to face more such thrilling experiences. But the troubling question that hogs my mind is: Am I ready? (If ever I say that I know I am ready - then its time I kill myself... or somebody shoot me!)

- Homa
performed at the friend's place. There were answers to be found and so powers had to be called and sacrifices had to be made. The fire and the chantings, the seeking and the blessings, all had an inexplicable effect on me - for whatever it is worth. If not for me, at least for the concerned. Interestingly, soon after this ritual performance, the TV newsmen were reporting a huge lead to BJP in the Karnataka elections. BJP's victory was assured. (If religion is not for the victorious then what is so victorious about the religion?)

- Pretty chicks in the town. They had to be seen than told. (What is it called for what can be seen but cannot be explained about? A Woman's face(?))

- When sitting in the train, thinking about the re-born feeling of love, I realized that I've no notion of what love is. But do somebody else know? If I've to know, then I've only one thing to do- to fall madly and deeply in love. And bear the consequences it brings. But if only I'd first the courage to say: I love you. (Does she love me?)

-*-*-*--*-*-*--*-*-*--*-*-*-

Powered By Blogger