Skip to content
Benedek Racz edited this page Oct 20, 2020 · 3 revisions

Welcome to the fliplot wiki!

GetValue - Radix

I want to implement the radix feature (i.e the getValue API) of fliplot. Here are the requirements.

Radix will be used in the following places:

  • In the current value column (after the signal names). Rarely used (I mean the function will be called rarely) so the performance is not essential. Here, we want to use the same format that used in the waveform, a human-readable format. Bit-signals need 4 (0, 1, X, Z) or 9 (+ H, L, U, ?) type values. For bus-signals we need hex, dec, float, etc. This is a "Get the value in a given time" like operation

  • In the waveform the bus-signals we need to show the values. This function should be support only the bus values (bits should not be printed). This is a "Get the value at a given index" like operation. Note, that the analog wave style is the same.

  • A bit different, but a "get the height" like getter is needed for the bit-signals to draw the wave. This is a map function where: 1 -> 0 0 -> 1 X -> 0.5 Z -> 0.5 This is a "Get the value at a given index" like operation.

  • The interface-creator API also needs getValue, the simples one is the pos/neg edges

  • The color mapping of the signals is an other task. 1 -> green 0 -> green X -> red Z -> blue

Clone this wiki locally