From: rishucoding Date: Fri, 26 Apr 2019 09:48:08 +0000 (+0530) Subject: added comments in AddressEncoder.py X-Git-Tag: div_pipeline~2143 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0f3f48fd4b92caebe346e6448101d633ac3bd78;p=soc.git added comments in AddressEncoder.py --- diff --git a/TLB/src/AddressEncoder.py b/TLB/src/AddressEncoder.py index 16eecf7c..31af2ff7 100644 --- 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):