17.01.2015 Views

Programmable Logic Design Quick Start Handbook

Programmable Logic Design Quick Start Handbook

Programmable Logic Design Quick Start Handbook

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

WEBPACK ISE DESIGN ENTRY<br />

Connect the counter and state machine instantiated modules so that your<br />

“top.vhd” file looks like Figure 4-29.<br />

FIGURE 4-29: TOP.VHD FILE<br />

When you save “top.vhd,” notice how the Sources window automatically<br />

manages the hierarchy of the whole design, with “counter.vhd” and<br />

“stat_mac.vhd” becoming sub-modules of “top.vhd.”<br />

You can now simulate the entire design.<br />

Add a new testbench waveform source as before, but this time, associate it<br />

with the module “top.”<br />

Accept the timing in the Initialize Timing dialog box and click OK.<br />

In the waveform diagram, enter the input stimulus as follows:<br />

Set the RESET cell below CLK cycle 1 to a value of “1.”<br />

Xilinx • 123

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!