from Multisim VHDL Building Code - Part 1
Continuing with the tutorial create VHDL code from a Multisim schematic in the first half we created a new design in Multisim PLD where we define the input and output logic circuit. Now let us capture the diagram, remember that our goal is function X = AB + CD , where A, B, C and D will tickets switches (SW0, SW1, SW2, SW3) and X is an LED (LED0 .)
Select the menu Place>> Component ... to open the browser components. It is noteworthy that since we are in LDP mode, the master database est to find only limited and related components digital logic. Take a moment to explore different groups and families are available in the Multisim database.
Now let PLD Logic Group , Family LOGIC_GATES and select the component AND2 (we will need two AND gates), also require an OR. Connect the circuit as shown in the figure below:
In summary remember q SW0 to SW3 entries correspond to real switches, and output to an indicator LED0 the logical function would be embedded in the FPGA chip. Here's part of the truth table for this circuit:
A | B | C | D | AB | CD | X |
0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 1 | 0 | 0 | 0 |
0 | 0 | 1 | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 | 0 | 1 | 1 |
To test we simply plug our circuit input and an output indicator, or we can create another test circuit which is (we'll leave for another article), for the moment let's focus on the VHDL code generation. For this in Multisim go to menu Transfer >> Export to PLD ...
In the previous window we see that there are several options, assuming you have not connected any FPGA chip card we only generate the VHDL. We click Next , select a route for save the file, click Finish and ready. Multisim creates two files with the vhd. These files can be opened with a text editor. Here is a part:
In summary we conclude that the new PLD Multisim schematic can create a logic circuit and generate the VHDL code (required to program a FPGA) automatically. On the other hand, the PLD module works fine with the card NI Digital Electronics FPGA Board of National Instruments, which is ideal for laboratory acetic pr. In this card you can download VHDL code directly from Multisim.
I hope you have enjoyed this introduction to PLD schematic, do not forget to send your questions and comments.
soon,
Fernando
0 comments:
Post a Comment