*******************************************************************************
********* V E R I L O G   M U L T I P L I C A T I V E   I N V E R S E *********
*******************************************************************************

This package generates VERILOG code for any n bit multiplicative inverse
based on Itoh Tsujii Algorithm. 

System Requirements
-------------------
This code was compliled with a gcc 3.2 and tested on a Linux X386 PC.

Compilation
-----------
1. Run make from the prompt.
   $ make

2. Ensure that the directory 'hdl' is present

Running
-------
1. Make sure the directory hdl is empty
   $rm -f hdl/*
2. Create the file ac.txt
	Each 4 lines in ac.txt has the format
	{
	1 2 3 6 12 24 48 96 192 b
	193
	15
	12
	}
	The first line is the addition chain for n-1.
	The second line is n.
	The third line is m of the irreducible polynomial x^n + x^m + 1=0
	The fourth line is t_s, the number of cascaded quad blocks
2. Run the program
   $python makeverilog.py
   The code also will synthesis the code if ise is present. The
   path for ise should be set in synthesis.py.
   Also the necessary environment variables need to be set.

Note
----
1. If Automatic synthesis of the cod is not required, then the lines can
be commented out from makeverilog.py file.
2. To automatically do synthesis
	a. The LD_LIBRARY_PATH must be set to <xilinx home>/ise/lin
	b. The XILINX path must be set to <xilinx home>/ise
	c. Set the path to ISE in the file  synthesis.py


Important Files
---------------
  [ac.txt]         Contains addition chains and other inputs to the program


*******************************************************************************
