AppendixF - F1 NODE { REPEAT = 2; LEVEL 0 FOR 20.0; LEVEL 1...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
User patterns begin as patterns defined in a Quartus vector waveform file (VWF). An example of the relevant portions of the VWF is shown in Figure 1. These nodes are reduced into a flat list as shown in Figure 2. This is done by using Perl regular expressions to expand each node, beginning with the inner-most node. Perl regular expressions are used to parse this list, which involves writing the range specified by "FOR xx.0" as the value specified by "LEVEL x". Once this process is complete, the script has 32 lists of bits. The script pulls one value off each array in a loop and packs those values into a 32 bit hexadecimal word. This is then written in the memory initialization file format (MIF), as shown in Figure 3.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: F1 NODE { REPEAT = 2; LEVEL 0 FOR 20.0; LEVEL 1 FOR 20.0; NODE { REPEAT = 1; LEVEL 0 FOR 10.0; LEVEL 1 FOR 10.0; } } Figure 17. Example pattern as described in a VWF file. LEVEL 0 FOR 20.0; LEVEL 1 FOR 20.0; LEVEL 0 FOR 10.0; LEVEL 1 FOR 10.0; LEVEL 0 FOR 20.0; LEVEL 1 FOR 20.0; LEVEL 0 FOR 10.0; LEVEL 1 FOR 10.0; Figure 18. Example pattern flattened from Figure 1. F2 [000. .012] : 00000000; -- Default to zeroes 000 : 00000000; 002 : 00000001; 004 : 00000000; 005 : 00000001; 006 : 00000000; 008 : 00000001; 010 : 00000000; 011 : 00000001; Figure 19. MIF excerpt from parsing Figure 2, assuming all other bits are zero....
View Full Document

Page1 / 2

AppendixF - F1 NODE { REPEAT = 2; LEVEL 0 FOR 20.0; LEVEL 1...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online