Archive for December, 2007

Save Bash History

Posted in Programming on December 24, 2007 by aghoras

Use the following command to force Bash to save command history:

history -w

Using cut and sed

Posted in Uncategorized on December 11, 2007 by aghoras

Here’s oneliner to remove the first 9 characters from a filename and convert all the spaces to ‘_’:

for i in *.mp3;do n=`echo $i | cut -b 9- | sed ’s/\ /_/’`;echo $i : $n;done

Pack:1239 Xilinx Warnings

Posted in FPGA on December 10, 2007 by aghoras

Sometimes during synthesis, XST spits out a warning saying something to the effect of “Can’t join a register to an input pin because they are not under the same hierarchy. Do one of the following to fix this problem: (three choices that flatten your design).”

I think this problem is caused by the synthesis tool trying to pack the edge registers into IOBs where it can’t get to certain signals. To fix this problem (and keep the design hierarchy) two things need to be done:

  1. Disable the Synthesis/Properties/Xilix Specifc Options/Pack I/O registers into IOBs. This can also be done on a module basis by using attributes like:
    attribute iob: string;
    attribute iob of lcl_control_regs_instance : label is "FALSE";
  2. Set Pack I/O Registers/Latches into IOBs to off under Map Properties