From e6ba0ac37e5db58318ba272659d78cb599b27a34 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 3 May 2019 00:35:17 +0100 Subject: [PATCH 1/1] document concurrentunit --- src/nmutil/concurrentunit.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/nmutil/concurrentunit.py b/src/nmutil/concurrentunit.py index 82b81ff5..5f02d7cd 100644 --- a/src/nmutil/concurrentunit.py +++ b/src/nmutil/concurrentunit.py @@ -1,6 +1,12 @@ -# IEEE Floating Point Adder (Single Precision) -# Copyright (C) Jonathan P Dawson 2013 -# 2013-12-12 +""" concurrent unit from mitch alsup augmentations to 6600 scoreboard + + * data fans in + * data goes through a pipeline + * results fan back out. + + the output data format has to have a member "mid", which is used + as the array index on fan-out +""" from math import log from nmigen import Module @@ -14,6 +20,7 @@ from nmutil.multipipe import PriorityCombMuxInPipe def num_bits(n): return int(log(n) / log(2)) + class FPADDInMuxPipe(PriorityCombMuxInPipe): def __init__(self, num_rows, iospecfn): self.num_rows = num_rows -- 2.30.2