24.03.2013 Views

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating waveforms from patterns<br />

Creating waveforms from patterns GR-289<br />

Waveform Editor includes a Create Pattern wizard that walks you through the process of<br />

creating waveforms. To access the wizard, do one of the following:<br />

Right-click an object in the Objects pane or structure pane <strong>and</strong> select Create Wave.<br />

Right-click a signal already in the Wave window <strong>and</strong> select Create/Modify Waveform.<br />

(Only possible before simulation is run.)<br />

The graphic below shows the initial dialog in the wizard. Note that the Drive Type field is<br />

not present for input <strong>and</strong> output signals.<br />

In this dialog you specify the signal that the waveform will be based upon, the Drive Type<br />

(if applicable), the start <strong>and</strong> end time for the waveform, <strong>and</strong> the pattern for the waveform.<br />

The second dialog in the wizard lets you specify the appropriate attributes based on the<br />

pattern you select. The table below shows the five available patterns <strong>and</strong> their attributes:<br />

Pattern Description<br />

Clock Specify an initial value, duty cycle, <strong>and</strong> clock period for the waveform.<br />

Constant Specify a value.<br />

R<strong>and</strong>om Generates different patterns depending upon the seed value. Specify<br />

the type (normal or uniform), an initial value, <strong>and</strong> a seed value. If you<br />

don’t specify a seed value, <strong>ModelSim</strong> uses a default value of 5.<br />

Repeater Specify an initial value <strong>and</strong> pattern that repeats. You can also specify<br />

how many times the pattern repeats.<br />

Counter Specify start <strong>and</strong> end values, time period, type (Range, Binary, Gray,<br />

One Hot, Zero Hot, Johnson), counter direction, step count, <strong>and</strong> repeat<br />

number.<br />

<strong>ModelSim</strong> <strong>SE</strong> User’s <strong>Manual</strong>

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

Saved successfully!

Ooh no, something went wrong!