[Libre-soc-dev] add asm field to all isatables csv files

Jacob Lifshay programmerjake at gmail.com
Wed Mar 17 20:56:01 GMT 2021


On Wed, Mar 17, 2021 at 12:49 PM Luke Kenneth Casson Leighton
<lkcl at lkcl.net> wrote:
>
> On Wednesday, March 17, 2021, Jacob Lifshay <programmerjake at gmail.com>
> wrote:
> > yeah, well that's not a very sustainable solution.
>
>
> the other ones i stripped the crud, i left the 9/blah in for now because we
> are not doing FP yet.

Ok, though I'd appreciate adding an option to the decoder to load the
FP opcodes too, that way I can add them to the generated C++ header.

> > > doesn't work.  look at isel.
> >
> > all those lines can be replaced with the single line:
> > 0b-----01111,CR,OP_ISEL,RA_OR_ZERO,RB,NONE,RT,BC,NONE,0,0,
> > ZERO,0,NONE,0,0,0,0,0,0,NONE,0,1,isel,A
> >
> > so, afaict that should work.
>
>
> give it a shot.  see if the same trick works for rotate (minor 30) as well.

Ok. I'm assuming just generating the IL for the decoder should be
enough for testing (assuming I don't accidentally use the wrong
opcode).

I modified the generate_headers.py file from simplev-cpp to list
duplicate comment fields:
duplicate comment field: 'rldic' subdecoder.pattern=30
duplicate comment field: 'rldicl' subdecoder.pattern=30
duplicate comment field: 'rldicr' subdecoder.pattern=30
duplicate comment field: 'rldimi' subdecoder.pattern=30
duplicate comment field: 'extswsli' subdecoder.pattern=31
duplicate comment field: 'isel' subdecoder.pattern=31
duplicate comment field: 'isel' subdecoder.pattern=31
<snip>
duplicate comment field: 'isel' subdecoder.pattern=31
duplicate comment field: 'isel' subdecoder.pattern=31
duplicate comment field: 'mulhd' subdecoder.pattern=31
duplicate comment field: 'mulhdu' subdecoder.pattern=31
duplicate comment field: 'mulhw' subdecoder.pattern=31
duplicate comment field: 'mulhwu' subdecoder.pattern=31
duplicate comment field: 'sradi' subdecoder.pattern=31

Jacob



More information about the Libre-soc-dev mailing list