Winter 2009
5. Click Next to complete the Wizard session. A description of the module displays. 6. Click Finish to open the empty VHDL file in the ISE Text Editor. See Figure 2.
Winter 2009
In the ISE Text Editor, the ports are already declared in the VHDL file, and some of the basic file structure is already in place. Keywords are displayed in blue, data types in red, comments in green, and values in black. This color-coding enhances readability and recognition of typographical errors.
Winter 2009
Adding the Language Template to Your File You will now use the Use in file method for adding templates to your VHDL file. (Note: a copy and paste function is also available from the Language Templates Edit Menu and the right click menu.) 1. Before you add the template to the hex2led.vhd, move the cursor under the architecture begin statement (line number 38 in Figure 4). 2. In the Language Templates, right click the 7-Segment Display Hex Conversion name and select Use in file. This will add the template into the hex2led.vhd file. 3. Close the Language Templates window. You now have complete and functional VHDL code. 4. Save the file by selecting File Save. 5. Select hex2led in the Sources window. In the Processes window, expand the selection of Implement Design, Synthesize-XST, and double click on Check Syntax to test your VHDL code.
6. To create a schematic symbol, click (+) under Design Utilities and double click on Create Schematic Symbol. The schematic symbol of hex2led will appear under Symbols in a Schematic Editor window in the same project. 7. To simulate, open new Test Bench Waveform file and select hex2led as a source code.
Reference: ISE In-Depth Tutorial, www.xilinx.com
Winter 2009