In this paper, authors detail a Top-down design methodology for Power Electronic fully digital controller based on a Field Programmable Gate Array (FPGA). This design flow uses the VHDL-AMS language. The case of a shunt threephase active filter is studied. An optimised architecture is designed and each step is detailed. Each block of the architecture is modelled in the VHDL at several levels of abstraction, from real data format to specific binary format. To achieve closed loop simulation, analogue and power elements are modelled in the VHDL-AMS. The whole closed loop system is successfully validated at various levels of abstraction of the digital control, using the ADVanceMS Computer Aided Design tools. An experimental validation of the proposed architecture, implemented on the target Xilinx Virtex-II 2V4000bf95 FPGA is discussed.