X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fparallel%2F__init__.py;h=e7ed36cb2c7d452331f05fdd20c20ff2068818b6;hb=853653aa7bf59ee570a36b4e15211d5a653c1b95;hp=a338c43ae4bf01c0c78e8575870f57a2d0e82344;hpb=25e1418afe855a77be29bca4350dc49220dd3143;p=libsigrokdecode.git diff --git a/decoders/parallel/__init__.py b/decoders/parallel/__init__.py index a338c43..e7ed36c 100644 --- a/decoders/parallel/__init__.py +++ b/decoders/parallel/__init__.py @@ -14,19 +14,32 @@ ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## along with this program; if not, see . ## ''' This protocol decoder can decode synchronous parallel buses with various -number of data bits/probes and one clock line. +data bits/channels counts, an (optional) clock line, and an (optional) +select/enable/reset line. -It is required to use the lowest data probes, and use consecutive ones. -For example, for a 4-bit sync parallel bus, probes D0/D1/D2/D3 (and CLK) -should be used. Using combinations like D7/D12/D3/D15 is not supported. -For an 8-bit bus you should use D0-D7, for a 16-bit bus use D0-D15 and so on. -''' +Data bits are taken from the decoder's lowest connected input pins. The +input signal's data lines count need not span the full amount of the +decoder's maximum supported data lines count. Not connected data lines +are assumed to be low. + +Example use cases are: Connect D3/D2/D1/D0 (and CLK) to a 4-bit bus. +Connect D7 and D6 to inspect the two most significant bits of an 8-bit +bus (and have 8-bit values shown instead of just 2-bit values). -from .pd import * +When provided, the specified clock edge determines when data lines get +sampled. Without a clock spec, each transition on any of the data lines +will be shown, which can become busy/noisy depending on the input data. + +Another signal optionally can control the period of time within which +the data lines' bit pattern gets interpreted. Typical use cases would be +reset, or select, or enable signals that are related to the bus' data +communication. This optional signal can also improve synchronization to +wider payload data which spans several bus cycles (multiplexing). +''' +from .pd import Decoder