From 636338a22525875a9db61912804f3759cfd7fe47 Mon Sep 17 00:00:00 2001 From: Daniel Benusovich Date: Mon, 11 Mar 2019 19:52:45 -0700 Subject: [PATCH] Update comments. Remove Whitespace --- TLB/src/Cam.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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(): -- 2.30.2