Download Notes - Read

Transcript
FLI and C Models
C Architecture Example
C Architecture Example
entity and_gate is
port(in1, in2 : bit;
out1 : out bit);
end;
VHDL
Initialization function
Object code
architecture only of and_gate is
attribute foreign : string;
attribute foreign of only : architecture is "and_gate_init gates.so";
begin
end;
7-19 • ModelSim® Advanced Debugging: FLI and C Models
Copyright © 2002 Mentor Graphics Corporation
Notes:
Starting with VHDL ‘93, the FOREIGN attribute is declared in package
STANDARD. With the 1987 version, you need to declare it yourself. Declare it in
a separate package or directly in the architecture. This also works with VHDL ‘93.
ModelSim Advanced Debugging
December 2002
7-35