From da937976dc87c5c325c49ae54165d763d8c1c050 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 26 Jun 2018 07:44:50 +0100 Subject: [PATCH] add comment to mkmux function --- src/bsv/actual_pinmux.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bsv/actual_pinmux.py b/src/bsv/actual_pinmux.py index bff3163..debd015 100644 --- a/src/bsv/actual_pinmux.py +++ b/src/bsv/actual_pinmux.py @@ -95,6 +95,10 @@ def mkcomment(ifaces, cell, idx, outenmode=False): def mkmux(p, ifaces, cell, suffix, outenmode): + """ creates a straight many-to-one muxer that accepts + multiple inputs and, based on an "address" routes + a given indexed input through to the (one) output + """ comment = 'outen' if outenmode else 'output' fmtstr = "\t\t\twr%s==%d?%s:%s\n" # mux-selector format ret = '' -- 2.30.2