IRVS VLSI IDEA INNOVATORS

IRVS VLSI IDEA INNOVATORS
VLSI Project, Embedded Project, Matlab Projects and courses with 100% Placements

Monday, January 31, 2011

Good coding practices

• Good coding style means that the synthesis tool can identify constructs within your code that it can easily map to technology features.

• All programmable devices may have their unique architectural resources e.g. Xilinx Virtex series has built-in RAM.

• Coding for performance :

– common mistake is to ignore hardware and start coding as if programming. To achieve best performance the designer must think about hardware.

• Improve performance by

– avoiding unnecessary priority structures in logic.

– optimizing logic for late arriving signals.

– structuring arithmetic for performance.

– avoiding area inefficient code.

– buffering high fan-out signals.

• Use “constants” to enhance readability and code maintenance.

• Comparison with a constant is preferred since it is much “cheaper” to implement.

• To avoid accidental latches

– specify all clauses of “if” and “case” statements.

– specify all outputs.

• Use “case” rather than “if-then-else” whenever possible.

• Use parentheses for better operation.

• Never use mode “buffer”

information shared by www.irvs.info