From c0f3f48fd4b92caebe346e6448101d633ac3bd78 Mon Sep 17 00:00:00 2001 From: rishucoding Date: Fri, 26 Apr 2019 15:18:08 +0530 Subject: [PATCH] added comments in AddressEncoder.py --- TLB/src/AddressEncoder.py | 5 +++++ 1 file changed, 5 insertions(+) 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): -- 2.30.2