AHDL, Altera ortaklığı tarafından kendi ürettiği CPLD ve FPGA türündeki aygıtlarla birlikte kullanılmak üzere geliştirilen ve pazarlanan bir donanım tanımlama dilidir. Bu donanım tanımlama dilinin C programlama diline benzer yapısı ve VHDL diline benzer işlevi vardır. Altera`nın Quartus ve Max+ serisi derleyicileriyle derlenir.
Örnek kod:
elektronik-taslak
Örnek kod:
% a simple AHDL up counter, released to public domain 11/13/2006 % % quotations achieved with percent sign % % like c, ahdl functions must be prototyped %
% PROTOTYPE:FUNCTION COUNTER (CLK)RETURNS (CNTOUT[1]); %
% function declaration, where inputs, outputs, and bidirectional pins are declared % % also like c, square brakets indicate an array %
SUBDESIGN COUNTER (CLK :INPUT;CNTOUT[2] :OUTPUT;)
% variables can be anything from flip-flops (as in this case), tri-state buffers, state machines, to user defined functions %
VARIABLETIMER[3]: DFF;
% as with all hardware description languages, think of thisless as an algorithm and more as wiring nodes together %
BEGINDEFAULTS
TIMER[4].prn = VCC; % this takes care of d-ff resets %TIMER[5].clrn = VCC;END DEFAULTS;
TIMER[6].d = TIMER[7].q + H"1";END;
Ayrıca Bakınız
elektronik-taslak
Görüşler