[J-core] json instructions set
D. Jeff Dionne
Jeff at SE-Instruments.co.jp
Tue Jun 27 01:28:53 EDT 2017
On Jun 27, 2017, at 9:12, Cedric BAIL <cedric.bail at free.fr> wrote:
> So I have been working on making
> http://www.shared-ptr.com/sh_insns.html more usable for developping
> new instructions as I think we are taking the road of adding more of
> them in the future and we need also an easier way to discuss future
> propoal I think.
Thanks for that, (the) one thing missing from the J-Core IP set is a coherent documentation suite.
> I have put my work on https://github.com/Bluebugs/sh-insns . It
> require to be installed either locally or on a webserver. It doesn't
> everything (which make it a bit heavy on your computer, but it isn't
> too bad considering the benefit). This new webpage allow for sorting,
> filtering and regexp based search on the entire instructions set (and
> you can combine this together). The instructions themself are actually
> described in a separate JSON file (thus the title of the email) that
> would allow pull request discussion for expanding the J-Core
> instructions set.
> As I know there will be discussion regarding the license, it is
> currently under GPLv3, but it can be relicensed to whatever any one
> really prefer.
BSD, please. Especially if it is going to become the source material for the instruction set.
> I don't think this work is impacted by the original
> license of the code that generate
> http://www.shared-ptr.com/sh_insns.html (GPLv3 doesn't apply on the
> output of the program and you can run that program locally). I have
> also not extracted the svg that the original site contain to not be
> affected by the GPLv3. So all in all, I think this is fine to be
> relicensed (I have checked in the node.js script I have used to
> extract the information and I made sure that all manual modification
> where visible in the git history).
> My hope here would be that the J-Core project accept this as the first
> J-Core github project and that we can use this for future discussion
> on new instructions. Maybe it could also become a documentation
> repository for the J-Core in general (This file only cover
> instructions for the moment and there is clearly more to a CPU than
> just its instructions set).
More than happy to see if we can do that, yes!
One thing I want to caution: Instruction set extensions are guarded like the crown jewels. It really, really is internally here a consensus process, with a case needing to be made for -why- they precious encoding space should be used. There have been a large number of proposed formats, space reservations, coprocessor encodings, etc proposed... nothing has ever reached consensus with the exception of CAS.L. Of course, the best way to get such a proposal adopted is to show it's value, so we encourage experimentation. BGB's independent experiments for instance with compilers other than GCC and LLVM, instructions etc, while not a part of the project contribute experimental results. It is unlikely, for instance, that a 64bit mode that isn't carefully designed, including instruction frequency counts from mainstream compiler ports, could go into either J-Core documentation or RTL repos.
I mention this caution because if it does become the documentation set for the cores, it has to reflect the stable, mature status of the ISA and Cores. Experimental stuff can always go into separate repos...
> Cedric BAIL
> PS: Latency and issue information are made up in the JSON file
> regarding J-Core as I am not yet able to decipher the decoder code of
> the published J-Core.
Yes, basically exactly. See above about needing all these things to be at least in sync, and eventually autogenerated from the same sources.
> J-core mailing list
> J-core at lists.j-core.org
More information about the J-core