VHDL Programming

(C. Jardin) #1

202 Chapter Seven


aileron : OUT control;
elevator : OUT control);
END autopilot;

ARCHITECTURE block_level OF autopilot IS
COMPONENT alt_compare
PORT( alt_ref : IN alt;
PORT( alt_ind : IN alt;
PORT( up_down : OUT vdir);
END COMPONENT;

COMPONENT hdg_compare
PORT( hdg_ref : IN hdg;
PORT( hdg_ind : IN hdg;
PORT( left_right : OUT hdir);
END COMPONENT;

COMPONENT hdg_ctrl
PORT( left_right : IN hdir;
PORT( rdr : OUT control;
PORT( alrn : OUT control);
END COMPONENT;

COMPONENT alt_ctrl
PORT( up_down : IN vdir;
PORT( elevator : OUT control);
END COMPONENT;

SIGNAL up_down : vdir;
SIGNAL left_right : hdir;

FOR M1 : alt_compare USE CONFIGURATION WORK.alt_comp_con;

Indicated
Altitude

Desired
Altitude

Indicated
Heading

Desired
Heading

Up/Down

Left/Right

Elevator

Aileron

Rudder

Alt_Comp Alt_Ctrl

Hdg_Comp Hdg_Ctrl

Figure 7-5
Block Diagram of
Autopilot Example.

Free download pdf