GTKWave (a circuit wave viewing tool) displays multi-wire signals as numbers by default. If those signals correspond to constants for control (e.g. instruction operation codes), it may be useful to display human-readable, human-assigned names for them instead of numbers. GTKWave can do this with Translate Filter Files.
Such a file contains one mapping per line: the number (in any base you like - you'll set this later), a tab, and the desired name. Then in GTKWave, right-click the signal in the Signals pane and choose Data Format | Translate Filter File | Enable and Select. Click the "Add Filter to List" button to open a file, then select its new entry in the top list and click OK. The lookup seems to operate on the string displayed instead of the numeric value, so set the data format again to whatever base you used in the translate filter file. (This preserves the file selection.)
No comments:
Post a Comment