[Libre-soc-bugs] [Bug 176] partitioned dynamic bool/all/any/xor operators

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon Dec 28 07:01:19 GMT 2020


https://bugs.libre-soc.org/show_bug.cgi?id=176

--- Comment #7 from ps905 at snu.edu.in ---
>all the code written takes 2 parameters:
>a) width
>b) partition points

>take a look at the eq code as an example.

>if an instance of the eq class is declared as 32 bit the partition points can >be:

>8 8 8 8
>16 8 8
>8 16 8
>8 8 16
>16 16
>8 24
>24 8
>32

>because the partition settings will be

>0 0 0
>1 0 0
>0 1 0
>0 0 1
>etc etc.

>the code does NOT take a parameter "partition equals 64 bit, partition equals >2x32 bit, partition equals 4x15"

>the code takes a parameter indicating the OPENING GATE POINTs... *between* the >8 bit sub-sections

>look at the code and the notes that went with it.

got a better hold of it, thanks

>pranav this one is dead easy.

>  def any(self):
>     width = self.sig.shape()[0]
>     return self.__eq__(Const(-1, width))

or probably just:

>  def any(self):
>     return self == Const(-1)

>would you like to try writing the (two lines!) some() case?

sure will do this

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list