Forum Discussion
Altera_Forum
Honored Contributor
21 years ago> What effect does a DEBUG {} block have? I've seen it in a couple of places.
This lets a particular component turn enable UI debugging, versus the global enable method. You may place a single assignment inside the debug section which indicates the debug-level, e.g.: DEBUG { level = 2; } The level 0 (zero) means debugging is off, and level 9 is the highest level currently used (with level 9, you will see every command-line of every external program run). Pretty much everything else prints when debugging is set to level 1 as the "level" feature was only recently added. The global-enable method: add the following assignment to your ~/.sopc_builder/.sopc_builder file: sopc_ui_debug = 1; (choose any debug level, 0/1..9) On windows, ~ is your %USERPROFILE% directory (typ. C:\Documents and Settings\<username>) >What is the format for the WAVEFORM/ITEM/value field? This is something we have no documentation for, and it isn't easily described in a reply -- but here is an attempt. The format is basically a comma-delimited series of directives. The directives are: HH,HL,LH,LL: High-High, High-Low, etc. transitions CH,CL: Clock transitions (Low-High, High-Low) TT,TD,DT: Tristrate, Tristrate to/from double-line transitions VV: Vertical line TO: Time (called "the little circles" in the code) C<color>: color-change (CBLACK, CRED, CGREEN, CBLUE, CYELLOW supported) SC,SS: draw string with/without advancing cursor OO: dot,dot,dot X<#>,Y<#>: positional changes BB: advance cursor forward There is probably more to it than this, and I suggest making a little UI to try things out if you need to go deeper. For example: EDIT { title = "Waveform Source"; DATA { $$waveform_source = "$"; } } WAVEFORM { ITEM { value = "{{ $$waveform_source }}"; } Then when you type in the edit-field the waveform will draw... >What is the Europa library that you use to generate your Perl module-generation scripts? >What language is used between the {{ }} delimiters in strings? These are Altera-created languages/libraries which we'll be documenting in the future (near-future, hopefully). For now your best bet is to look at other components as Kerri pointed out, and ask questions in the forum as needed!