[Libre-soc-dev] crbinlog / binlog / crternlogi

Luke Kenneth Casson Leighton lkcl at lkcl.net
Mon Jan 22 14:36:02 GMT 2024


ngggh, complex. i'm adding 2 more instructions, one of them
is crbinlog (former instruction under that name renamed to
crfbinlog - CR Field Binary Logic Lookup LUT2)

pseudocode:

    lut <- CR[4*BFB+32:4*BFB+35]
    idx <- CR[BT+32] || CR[BA+32]
    CR[BT+32] <- lut[3-idx]

note that BT and BA are *bit*-based, but the LUT2 is a CR *field*.

this is causing me some mayhem / merriment with the CSV files,
because there's only one column for source. sigh. this does really
need sorting out (first step is to canonicalise in the CSV reader,
adding CRin1/2/3)

but this is for another time, i am hacking things at the moment.

l.



More information about the Libre-soc-dev mailing list