PGD file support

add amctrl.c to handle PGD file.