Sunday, April 15, 2018

Netlist Remapping

use the following sample .simrc (placed in project directory) for netlist net name remapping:

vlogifVicSVTextCellViewList = (list "systemVerilogText" "text.v" "VerilogAMSText")
hnlVerilogNetlistBehavioralExplicit = 't
simVerilogNetlistExplicit = 't
;envSetVal("asimenv" "mappingMode" 'string "nmp")   ;default
envSetVal("asimenv" "mappingMode" 'string "oss")
hnlSpectreMapNetInName='("." "\.")
hnlSpectreMapNetInName='((">" "\\>") ("<" "\\<") )

Sunday, April 1, 2018

clone HDD - Compressed File Method

(This is copied from https://superuser.com/questions/1097210/clone-only-space-in-use-from-hard-disk)

Compressed file method

To generate the image:

## dd probably needs sudo here.
dd if=/dev/sdb bs=32M | gzip -c > /foo/bar/my_image.dd.gz
To write the image back:

## dd probably needs sudo here.
gzip -cd < /foo/bar/my_image.dd.gz | dd of=/dev/sdb bs=32M
These commands might be built without dd, with gzip only. I used dd to ensure 32 MiB buffer.

Advantages:

The resulting file is non-sparse, it needs no special treatment.
The image size will be reduced even more if the files on your source disk are prone to compression.
Disadvantages:

It is hard to access the files within the compressed image without full decompression (some FUSE may be useful, although I'm not sure, never tried; consider a squashfs approach).

-----------------------
The easiest way, if you use Windows, is to use Paragon Backup & Recovery Free.

1. Backup your original SD card to VM (virtual disk).
2. Restore it to another card, could be a smaller one. The application will ask if the partitions should be shrinked proportionally.

Thursday, February 1, 2018

Cadence Schematic/Layout Probe Nets

Ø  Probe nets in both schematic and layout: From schematic window ->Create->Probe -> Add Net (9)
Ø  Save the probed nets in a file: From schematic window ->Create->Probe ->Save
            
Ø  To recover the probed nets in schematic: From schematic window ->Create->Probe ->Load
Ø  To load the probed nets in layout: Select the layout window and type command below in CIW:
geLoadProbe(getCurrentWindow() infile("./probe.out"))
Ø  To delete all the probes in schematic window: Create->Probe->Remove All

Ø  To delete all the probes in layout window: geDeleteAllProbe(getCurrentWindow())

Thursday, August 10, 2017

How to Run Cadence QRC with Parasitic Cell Blocking

If you are using the parasitic cell blocking use mode, ie, using the extraction_setup -parasitic_blocking_device_cells_file “hcell_qci” CCL in QRC, please simultaneously make sure that the hierarchy of the cfmom device is preserved during LVS stage. So, if using PVS LVS flow, you need to ensure to run LVS with layout_cell_list and preserve_cell_list. For eg:

layout_cell_list hcell_qci “cfmom*” “cmom*” ind*”
preserve_cell_list hcell_qci

Also, need to ensure to run LVS hierarchically (Eg: use -automatch or Hcell option in PVS). Also, ensure to run LVS with lvs_push_devices_properties yes to ensure no device climbing occurs due to LPE extraction in QRCLVS or RC_DECK On flow.

Sunday, July 16, 2017

Determine USB Port in Ubuntu

Method 1: 
ls /dev > notplugged
# plug in device
ls /dev > plugged
diff notplugged plugged

Method 2:
 Run dmesg | grep tty after plugging in your device. The device file should be apparent in one of the lines.

Wednesday, November 23, 2016