projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a30b2fe
)
added comments in AddressEncoder.py
author
rishucoding
<rishucoding@gmail.com>
Fri, 26 Apr 2019 09:48:08 +0000
(15:18 +0530)
committer
rishucoding
<rishucoding@gmail.com>
Fri, 26 Apr 2019 09:48:08 +0000
(15:18 +0530)
TLB/src/AddressEncoder.py
patch
|
blob
|
history
diff --git
a/TLB/src/AddressEncoder.py
b/TLB/src/AddressEncoder.py
index 16eecf7cd85cc2dfd8fcc2ae73aed7c3a37f21ed..31af2ff73b6839583f3cd973d756b0866cd832c0 100644
(file)
--- a/
TLB/src/AddressEncoder.py
+++ b/
TLB/src/AddressEncoder.py
@@
-43,6
+43,11
@@
class AddressEncoder():
self.p_encoder.i.eq(self.i)
]
+ # Steps:
+ # 1. check if the input vector is non-zero
+ # 2. if non-zero, check if single match or multiple match
+ # 3. set output line to be lowest value address output
+
# If the priority encoder recieves an input of 0
# If n is 1 then the output is not valid
with m.If(self.p_encoder.n):