projects
/
ieee754fpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e7a11f8
)
document concurrentunit
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 2 May 2019 23:35:17 +0000
(
00:35
+0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 2 May 2019 23:35:17 +0000
(
00:35
+0100)
src/nmutil/concurrentunit.py
patch
|
blob
|
history
diff --git
a/src/nmutil/concurrentunit.py
b/src/nmutil/concurrentunit.py
index 82b81ff5d315e5bdb586a560f4eaa61420aa923f..5f02d7cd9ade7e11364c75aab2079bedd1fac57c 100644
(file)
--- 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
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))
def num_bits(n):
return int(log(n) / log(2))
+
class FPADDInMuxPipe(PriorityCombMuxInPipe):
def __init__(self, num_rows, iospecfn):
self.num_rows = num_rows
class FPADDInMuxPipe(PriorityCombMuxInPipe):
def __init__(self, num_rows, iospecfn):
self.num_rows = num_rows