* [libre-riscv-dev] POWER simulator
@ 2020-04-01 15:55 lkcl .
2020-04-01 17:04 ` Immanuel, Yehowshua U
0 siblings, 1 reply; 3+ messages in thread
From: lkcl . @ 2020-04-01 15:55 UTC (permalink / raw)
To: Libre-RISCV General Development
i just wanted to write a bit to everyone about what it's like when
using parsers like this. it's... very weird :) you create all these
pieces, you don't know if any of them will work, and then all of a
sudden the work's entirely done and it all works and you can go home.
it's horribly confusing. the effectiveness is so high that it's
like... "is that it?? surely it had to be harder than that??"
the last time i did something like this it was with Webkit, first
adding gobject bindings and then also adding python bindings i think
i mentioned before: it took me under 10 days to add support for python
bindings, by taking:
* Mozilla's HTML5 IDL compiler and getting it to understand the 350
Webkit-formatted HTML5 IDL files (1 day)
* python-gobject's compiler and getting it to understand the AST that
came out of the Mozilla IDL compiler (1 day)
* writing some code-generators for creating python c-based modules (3 days)
* writing some python "recognisers" for Webkit c++ datatypes (2-3 days)
* debugging (2-3 days)
that was *it*. 350 classes, 2,000 functions, and over TWENTY thousand
properties - all auto-generated - done in 10 days. full python
bindings, a peer of what is available for javascript, to HTML5.
this is no different, just on a smaller scale. it means placing quite
a lot of trust in auto-generated code, which is where the unit tests
come critically into play.
the code-fragments are actually compiled into a python AST, however i
discovered a library that can turn those back into actual python code.
this can be used to actually *output* python source code, which means
that we have something to examine (for bugs).
l.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [libre-riscv-dev] POWER simulator
2020-04-01 15:55 [libre-riscv-dev] POWER simulator lkcl .
@ 2020-04-01 17:04 ` Immanuel, Yehowshua U
2020-04-01 17:43 ` Luke Kenneth Casson Leighton
0 siblings, 1 reply; 3+ messages in thread
From: Immanuel, Yehowshua U @ 2020-04-01 17:04 UTC (permalink / raw)
To: Libre-RISCV General Development
I’m guessing this is in reference to parsing the PDF?
As in - what we should expect labor-wise?
Yehowshua
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [libre-riscv-dev] POWER simulator
2020-04-01 17:04 ` Immanuel, Yehowshua U
@ 2020-04-01 17:43 ` Luke Kenneth Casson Leighton
0 siblings, 0 replies; 3+ messages in thread
From: Luke Kenneth Casson Leighton @ 2020-04-01 17:43 UTC (permalink / raw)
To: Libre-RISCV General Development
On Wed, Apr 1, 2020 at 6:05 PM Immanuel, Yehowshua U
<yimmanuel3@gatech.edu> wrote:
>
> I’m guessing this is in reference to parsing the PDF?
yep. https://libre-riscv.org/openpower/isa/
> As in - what we should expect labor-wise?
took about 5 hours but there's now information missing, i cut too much out.
the parser took about a day to get into shape.
putting in the decoder and a prototype regfile, another day.
first succesful instruction was today.
estimated... maybe... 3-4 more days and we should have the complete
set of integer instructions done. not speed-optimised at all.
quirks such as what various SPRs mean and do, maybe another 2-3 days.
l.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, back to index
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-01 15:55 [libre-riscv-dev] POWER simulator lkcl .
2020-04-01 17:04 ` Immanuel, Yehowshua U
2020-04-01 17:43 ` Luke Kenneth Casson Leighton
Libre RISC-V Mailing list Archives (accessible via public-inbox)
Archives are clonable: git clone --mirror https://inbox.libre-soc.org/libre-riscv-dev
Example config snippet for mirrors
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git