13.07.2015 Views

ModuleWare Reference Guide - Hornad

ModuleWare Reference Guide - Hornad

ModuleWare Reference Guide - Hornad

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Stimulus PartsCounter Value (counter)You can choose from a list of supported counter types.A Range counter generates a sequence of data values which count up or down by a fixed amountbetween specified Count From and Count To values.A Binary counter generates a binary data sequence starting from 0 to 2 N-1 where N is the widthin bits of the count port. You can use the Increment By field to specify the counter step.A Gray counter generates a counting data stream in which only a single bit transition persimulation cycle is allowed. It also starts from 0 to the maximum Gray number that the width ofthe count port can support. You can use the Increment By field to specify the counter step.A OneHot counter generates a stream of data values which move a logic 1 through a field oflogic 0’s, from left to right.A ZeroHot counter generates a stream of data values which move a logic 0 through a field oflogic 1’s, from left to right.A Johnson counter generates a bit stream which starts with all 0’s. On the next cycle, the mostsignificant bit becomes a 1. Then on the next cycle, the two most significant bits are 1’s. Thiscontinues until all bits are 1’s. Then the process starts all over again replacing 1’s with 0’s.For each type of counter, you can specify the count direction which can be up, down, up andthen down or down and then up. Note that when a number of repeats is specified, UpThenDownfollowed by DownThenUp is considered as one repetition.You can specify a decimal, binary, octal or hexadecimal radix which is used as the base for theFrom, To and Increment By fields.You can also specify a comma-separated list of values to be decoded. A new output port iscreated for each decode flag. For example, output ports ddout0 and ddout1 are required for thetwo decoded values 2, 12 shown in the example dialog box. By default the output goes to 1when the counter reaches a specified value.If the clock type is None, the cycle time must be specified. You can also specify a timing offset(which must be less than 1 second) before the waveform generator starts.You can specify the number of times to repeat the waveform or allow it to run forever. When anumber of repeats is set, the number of vectors generated is shown in the dialog box.Time intervals can optionally be specified in milliseconds (ms), microseconds (us),nanoseconds (ns) or picoseconds (ps). Seconds are assumed if no unit is specified. Spaces areautomatically used between the time value and unit in the generated HDL.274<strong>ModuleWare</strong> <strong>Reference</strong> Manual, Library Version 1.9September 18, 2008

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

Saved successfully!

Ooh no, something went wrong!