From: Daniel Benusovich Date: Tue, 12 Mar 2019 02:52:45 +0000 (-0700) Subject: Update comments. Remove Whitespace X-Git-Tag: div_pipeline~2311 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=636338a22525875a9db61912804f3759cfd7fe47;p=soc.git Update comments. Remove Whitespace --- diff --git a/TLB/src/Cam.py b/TLB/src/Cam.py index 7e53dc12..9e76337f 100644 --- a/TLB/src/Cam.py +++ b/TLB/src/Cam.py @@ -39,8 +39,7 @@ class Cam(): self.cam_size = cam_size self.encoder = AddressEncoder(cam_size) self.decoder = Decoder(cam_size) - self.entry_array = Array(CamEntry(data_size) \ - for x in range(cam_size)) + self.entry_array = Array(CamEntry(data_size) for x in range(cam_size)) self.vector_assembler = VectorAssembler(cam_size) # Input @@ -58,7 +57,7 @@ class Cam(): def elaborate(self, platform=None): m = Module() - # Encoder checks for multiple matches + # AddressEncoder for match types and output address m.submodules.AddressEncoder = self.encoder # Decoder is used to select which entry will be written to m.submodules.Decoder = self.decoder @@ -82,7 +81,7 @@ class Cam(): with m.If(self.decoder.o[index]): m.d.comb += entry_array[index].command.eq(2) with m.Else(): - m.d.comb += entry_array[index].command.eq(0) + m.d.comb += entry_array[index].command.eq(0) # Read Operation with m.Else():