Beginning FPGA Programming - Partie30.1
Beginning FPGA Programming - Partie30.1
3.
Select VHDL File and Click OK (Figure 8-4).
139
Chapter 8 ■ Telling the Truth: Boolean Algebra and Truth Tables
4.
Copy the code from Listing 8-2 into the new VHDL file and save the file as
boolean_algebra_example2.vhd with the check box Add file to current project
ticked (Figure 8-5).
entity boolean_algebra_example2 is
port (
A: in std_logic;
B: in std_logic;
C: in std_logic;
Result: out std_logic
);
end boolean_algebra_example2;
140
Chapter 8 ■ Telling the Truth: Boolean Algebra and Truth Tables
end behavioral;
5.
In Project Navigator, select Files. Right-click the file boolean_algebra_example.
vhd and click Set as Top-Level Entity (Figure 8-6).
141
Chapter 8 ■ Telling the Truth: Boolean Algebra and Truth Tables
6.
Click Processing ➤ Start ➤ Start Analysis & Elaboration from the Quartus
Prime menu or click the blue triangle with green tick box in the toolbar to start
analysis & elaboration (Figure 8-7). It will not have any warnings or errors in the
message pane (Figure 8-8).
142
Chapter 8 ■ Telling the Truth: Boolean Algebra and Truth Tables
7.
Click Tools ➤ Run Simulation Tool ➤ RTL Simulation from the Quartus Prime
menu to start simulation (Figure 8-9). The Select Simulation Language box will
pop up; select VHDL and click OK (Figure 8-10).
143