AHDL

from Wikipedia, the free encyclopedia

AHDL ( Altera Hardware Description Language ) is a model description language that was developed by Altera to describe digital hardware. Along with Xilinx, Altera is one of the largest manufacturers of programmable logic components .

AHDL is very similar to the hardware description language VHDL , but provides a few additional, simpler options for specifying state machines and truth tables.

AHDL is mainly used when using the development tools provided by Altera. It is thus possible to characterize the behavior of electronic components and modules and to calculate them in advance using simulators without actually having to build them up.

A circuit simulator that masters AHDL is z. B. SPECTER.

Sample code

% Ein einfacher AHDL-Aufwärtszähler, der am 13 November 2006 als Public Domain freigegeben wurde%
% [Blockzitate durch Prozentzeichen erreicht] %
% Wie in C müssen AHDL-Funktionen prototypisiert sein%

% PROTOTYPE:
 FUNCTION COUNTER (CLK)
	RETURNS (CNTOUT[7..0]); %

% Funktionsdeklaration, wo die Eingaben, Ausgaben und bidirektionalen Pins
% so wie in C deklariert werden, wo eckige Klammern Datenfelder darstellen %

SUBDESIGN COUNTER
(
	CLK		:INPUT;
	CNTOUT[7..0]	:OUTPUT;
)

% Variablen können von flip-flops (wie in diesem Falle), Puffern mit drei Zuständen,
endliche Automaten bis hin zu benutzerdefinierte Funktionen darstellen %

VARIABLE
	TIMER[7..0]: DFF;

% Wie bei allen Hardwarebeschreibungssprachen sehe man alles
 eher als eine Verdrahtung von Knoten als einen Algorithmus %

BEGIN
	DEFAULTS

		TIMER[].prn = VCC; %  this takes care of d-ff resets %
		TIMER[].clrn = VCC;
	END DEFAULTS;

	TIMER[].d = TIMER[].q + H"1";
END;

See also