How can I write out .lib file of a digital module designed in virtuoso ?
Also If I want to import this module as a digital block to encounter, how can I make it as a macro/cell ? How to take care of this while
writing out lef from virtuoso ?
If you have already generated your abstract then you could use (Shift+Q) Edit Master Properties and set the 'cellType' to 'block'.
Otherwise you can do the setting using abstract generator when creating teh abstract by moving the cell to the 'macro' 'bin'.
Another solution in case you have to do it for multiple cellviews is to use teh CIW -> Tools -> Set cellType.