ohmkara 1.0

a technical blog.

Archive for the ‘Uncategorized’ Category

Computation

leave a comment »

The world is ever computing. Every object is at least a special purpose computer, computing its own behavior (running the code that is the laws of nature)… can we execute a different code? Are the rules meant to be broken? Can we run our programs on substrates that we do not currently recognize as computational? Is there a substrate or is it all code?
(OR, in other words, am I crazy? :P)
P.S: I do not know how long this ISR, which woke my blog from sleep state will last…

Advertisements

Written by deepak

April 26, 2011 at 7:51 pm

Posted in Uncategorized

Tagged with ,

comment boxes — verilog in vim

leave a comment »

I have recently started learning verilog (used to use vhdl) and using vim as the editor of choice. I wanted some easy way to insert verilog comment boxes in file — something like…

///////////////////////////////////////////////
// Author: Deepak (18/03/2009 21:22)
// Module: xxxxx.v
// Project: yyyyy
// Description: some random module.
//
///////////////////////////////////////////////

I added an abbreviation, as follows, in the .vimrc file…

:iab #b ///////////////////////////////////////////////<CR> Author: Deepak (<C-R>=strftime(“%d/%m/%Y %H:%M”)<CR>) <CR>Module: .v <CR>Project: <CR>Description: <CR><CR><BS>/////////////////////////////////////////////

Typing #b does the trick. What this gives me is (in case you are not Neo – the one) is the following ‘template’.

///////////////////////////////////////////////
// Author: Deepak (18/03/2009 21:22)
// Module: .v
// Project:
// Description:
//
///////////////////////////////////////////////

There are other ways to do this, like adding a macro as shown here — link, or with boxes. But I felt that typing on in insert mode is less intrusive.

Written by deepak

March 19, 2009 at 10:41 pm

Posted in Uncategorized

Hello world!

with 2 comments

Hi all, this space in my technical blog. My generic blog can be found here. This space might turn out to be a mix to — engineering, electrical gyaan, linux stuff, scripting and other misc. tech stuff. I thought that demarcating technology and general blogs will be a good idea in terms of reader preferences. Anyway you can go and read the other one if you want to.

I value your feedback / comments to my posts. Let us see where this space goes from here. Initially the posting frequencies here may be small; though I hope to ramp it up as time progresses.

Written by deepak

January 2, 2009 at 12:00 pm

Posted in Uncategorized