Libre RISC-V Mailing list Archives (accessible via public-inbox)
 help / color / Atom feed
* Re: [libre-riscv-dev] daily kan-ban update 31jul2020
From: Luke Kenneth Casson Leighton @ 2020-07-31 17:41 UTC (permalink / raw)
  To: Libre-RISCV General Development
In-Reply-To: <CAPweEDyjb7M+8zFsHBabTbEFY9iU7Rth8wfA5cQh3H55k0RO2A@mail.gmail.com>

On Friday, July 31, 2020, Luke Kenneth Casson Leighton <lkcl@lkcl.net>
wrote:

not sure.  the litex simulation is "acting up", not outputting serial
> console data (for microwatt or libresoc), is stopping early and not quite
> matching.
>

ok i have some clues from this.  memory LD / STs were at the wrong
addresses.  this led me to investigate the immediate offsets, which turned
out to be unsigned only.

immediates are calculated in power_decoder which was one the first things
written. it is amazing that it has gone unnoticed for so long.

basically we had nowhere near good enough unit test coverage for LD / ST
otherwise this would have been caught far sooner.

l.



-- 
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
_______________________________________________
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

* Re: [libre-riscv-dev] microwatt feature request: "switch off all optimisations" mode
From: Luke Kenneth Casson Leighton @ 2020-08-01 13:55 UTC (permalink / raw)
  To: openpower-hdl-cores; +Cc: Libre-RISCV General Development
In-Reply-To: <CAPweEDw+-AKRy9jB8Q6E-QiQ+OhM-BS4HizgAsh37buVd+Y0Gg@mail.gmail.com>

On Friday, July 31, 2020, Luke Kenneth Casson Leighton <lkcl@lkcl.net>
wrote:

>
> what would you suggest here? how can we "single-step" microwatt?  clearly
> performance is not important: cycle-accurate comparisons is the goal.
>

i since realised that the DMI interface serves this purpose, and
investigated core_debug.vhdl

with a little bit (or a lot) of futzing about with a FSM i should be able
to run a single instruction then cycle through all of the GPRs, PC and MSR,
dumping them out.

by implementing the same interface in libresoc i can do a cycle by cycle
comparison and find the discrepancies.

it would be particularly useful to be able to get at the SPRs and the CR as
well, this way.

is there a standard for DMI address bus locations?

l



-- 
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
_______________________________________________
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

* [libre-riscv-dev] daily kan-ban update 01aug2020
From: Luke Kenneth Casson Leighton @ 2020-08-01 17:58 UTC (permalink / raw)
  To: Libre-RISCV General Development

tasks:

*
https://bugs.libre-soc.org/showdependencytree.cgi?maxdepth=1&id=383&hide_resolved=1

yesterday:

* exploring litex libresoc simulation, found several bugs

today:

* looked at shiftrot formal proof
* continued litex simulation investigation

finding out what is going on in litex is hampered significantly by not
being able to do side-by-side comparisons.

therefore what i am going to do is add a dmi interface to libresoc and get
the litex sim to single-step then dump registers.  with a compatible dmi
interface the same sim code FSM will be useable on both types of core.

discrepancies should then be easy to spot by using diff on the two debug
logs.

at that point i will know which instruction is wrong, where right now it is
excruciating guesswork.

l.




-- 
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
_______________________________________________
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

* [libre-riscv-dev] daily kan-ban update 02aug2020
From: Luke Kenneth Casson Leighton @ 2020-08-02 15:36 UTC (permalink / raw)
  To: Libre-RISCV General Development

today:

* converting DMI debug interface to nmigen (done, not tested)

interestingly i had already added start/stop signals just not with an
interface on them.

next task will be to integrate with the test core (including reading
registers), and after that try enumerating and single-stepping.

l.



-- 
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
_______________________________________________
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

* Re: [libre-riscv-dev] microwatt feature request: "switch off all optimisations" mode
From: Luke Kenneth Casson Leighton @ 2020-08-03  1:00 UTC (permalink / raw)
  To: Herrenschmidt, Benjamin; +Cc: openpower-hdl-cores, libre-riscv-dev
In-Reply-To: <ecbdd6b08e1937fa1d6b953add782909e4db8015.camel@amazon.com>

On Monday, August 3, 2020, Herrenschmidt, Benjamin <benh@amazon.com> wrote:

>
> > is there a standard for DMI address bus locations?
>
> Not really... I just made it all up :-)


that's funny, i like it :)

can we collaborate on making some more up, for example adding CR, XER and
the remaining SPRs to the list of registers?

also bear in mind, FP regs may get added (to microwatt).  and that in
libresoc we intend to expand the scalar int and fp regs to 128 entries.

l.



-- 
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
_______________________________________________
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

* Re: [libre-riscv-dev] [OpenPOWER-HDL-Cores] microwatt feature request: "switch off all optimisations" mode
From: Benjamin Herrenschmidt @ 2020-08-03  1:05 UTC (permalink / raw)
  To: Luke Kenneth Casson Leighton; +Cc: openpower-hdl-cores, libre-riscv-dev
In-Reply-To: <CAPweEDxNzKwFdCG1PvbMDHqYa_LzpJyN0sQF8LNYDir=sUWcOw@mail.gmail.com>

On Mon, 2020-08-03 at 02:00 +0100, Luke Kenneth Casson Leighton wrote:
> 
> 
> On Monday, August 3, 2020, Herrenschmidt, Benjamin <benh@amazon.com>
> wrote:
> > > is there a standard for DMI address bus locations?
> > 
> > Not really... I just made it all up :-)
> 
> that's funny, i like it :)
> 
> can we collaborate on making some more up, for example adding CR, XER
> and the remaining SPRs to the list of registers?

Sure. Patches welcome ;-) Also check out Paul's WIP branches, he also
occasionally add stuff.

> also bear in mind, FP regs may get added (to microwatt).  and that in
> libresoc we intend to expand the scalar int and fp regs to 128
> entries.

Paul has some of that in his FPU work already.

Cheers,
Ben.



_______________________________________________
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

* Re: [libre-riscv-dev] microwatt feature request: "switch off all optimisations" mode
From: Luke Kenneth Casson Leighton @ 2020-08-03  1:35 UTC (permalink / raw)
  To: Libre-RISCV General Development; +Cc: openpower-hdl-cores
In-Reply-To: <ef44d4fe97ab91f802f29e57212bdd3c0a7bdadf.camel@kernel.crashing.org>

On Monday, August 3, 2020, Benjamin Herrenschmidt <benh@kernel.crashing.org>
wrote:

> On Mon, 2020-08-03 at 02:00 +0100, Luke Kenneth Casson Leighton wrote:
> >
> >
> > On Monday, August 3, 2020, Herrenschmidt, Benjamin <benh@amazon.com>
> > wrote:
> > > > is there a standard for DMI address bus locations?
> > >
> > > Not really... I just made it all up :-)
> >
> > that's funny, i like it :)
> >
> > can we collaborate on making some more up, for example adding CR, XER
> > and the remaining SPRs to the list of registers?
>
> Sure. Patches welcome ;-)


ah i was thinking more along the lines of agreeing a spec that suits both
teams, even if the definitions are reserved for later implementation.

(btw we've an october tapeout deadline and i am not yet a vhdl developer).

by agreeing a set of registers, future teams with their own implementation
will want to save development effort and conform to the same spec.


Also check out Paul's WIP branches, he also
> occasionally add stuff.


willdo.



>
> > also bear in mind, FP regs may get added (to microwatt).  and that in
> > libresoc we intend to expand the scalar int and fp regs to 128
> > entries.
>
> Paul has some of that in his FPU work already.


ah excellent.




-- 
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
_______________________________________________
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

* Re: [libre-riscv-dev] microwatt feature request: "switch off all optimisations" mode
From: Luke Kenneth Casson Leighton @ 2020-08-03  2:38 UTC (permalink / raw)
  To: Herrenschmidt, Benjamin; +Cc: openpower-hdl-cores, libre-riscv-dev
In-Reply-To: <cf55d74b4cb63f11c5817fffbe178d9895fbdaea.camel@amazon.com>

On Monday, August 3, 2020, Herrenschmidt, Benjamin <benh@amazon.com> wrote:

> On Mon, 2020-08-03 at 02:35 +0100, Luke Kenneth Casson Leighton wrote:
> >
> > ah i was thinking more along the lines of agreeing a spec that suits
> > both teams, even if the definitions are reserved for later
> > implementation.
>
> That's fine, the patch could be adding a debug-regs-spec.txt :-)


that works :)


>
> (Or we could use a .h as a spec, and use it in mw_debug)


understood.

l.



-- 
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
_______________________________________________
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

* [libre-riscv-dev] nmigen monday irc meeting 1 hr (1800 UTC)
From: Luke Kenneth Casson Leighton @ 2020-08-03 16:53 UTC (permalink / raw)
  To: Libre-RISCV General Development

1800 UTC, freenode, #nmigen.
l.



-- 
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
_______________________________________________
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

* [libre-riscv-dev] daily kan-ban update 03aug2020
From: Luke Kenneth Casson Leighton @ 2020-08-03 17:46 UTC (permalink / raw)
  To: Libre-RISCV General Development

tasks:

*
https://bugs.libre-soc.org/showdependencytree.cgi?id=383&maxdepth=1&hide_resolved=1

today:

* nmigen IRC meeting (in 15 mins)
* linked DMI interface to core and got reset, start and stop working.

i need to test single-step as well as add regfile reading and being able to
get MSR and the PC.

at that point i can modify the litex sim.py to put either core in
singlestep mode and dump out registers and the PC, sequentially.

l.



-- 
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
_______________________________________________
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

* Re: [libre-riscv-dev] daily kan-ban update 03aug2020
From: Tobias Platen @ 2020-08-03 18:23 UTC (permalink / raw)
  To: libre-riscv-dev
In-Reply-To: <CAPweEDyzGpVwcHbmnpBLZOZ0=FY3SEA-sVMmmwJ1hhprAkoiig@mail.gmail.com>

On Mon, 3 Aug 2020 18:46:46 +0100
Luke Kenneth Casson Leighton <lkcl@lkcl.net> wrote:

today:
	testcase for data merger based on the diagrams (still incomplete)
	reading https://bugs.libre-soc.org/show_bug.cgi?id=393
	reading DualPortSplitter and LDSTSplitter code
	


-- 
Tobias Platen <libre-soc[at]platen-software[dot]de>

_______________________________________________
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

* Re: [libre-riscv-dev] [OpenPOWER-HDL-Cores] microwatt feature request: "switch off all optimisations" mode
From: Herrenschmidt, Benjamin @ 2020-08-03  0:13 UTC (permalink / raw)
  To: lkcl, openpower-hdl-cores; +Cc: libre-riscv-dev
In-Reply-To: <CAPweEDzFJH4MeTGHaHOj0++5ZbntYgWNMkMs8VDVFK1anA_2=w@mail.gmail.com>

On Sat, 2020-08-01 at 14:55 +0100, Luke Kenneth Casson Leighton wrote:
> 
> 
> On Friday, July 31, 2020, Luke Kenneth Casson Leighton <lkcl@lkcl.net
> > wrote:
> > what would you suggest here? how can we "single-step" microwatt? 
> > clearly performance is not important: cycle-accurate comparisons is
> > the goal.
> > 
> 
> i since realised that the DMI interface serves this purpose, and
> investigated core_debug.vhdl
>  
> with a little bit (or a lot) of futzing about with a FSM i should be
> able to run a single instruction then cycle through all of the GPRs,
> PC and MSR, dumping them out.
> 
> by implementing the same interface in libresoc i can do a cycle by
> cycle comparison and find the discrepancies.
> 
> it would be particularly useful to be able to get at the SPRs and the
> CR as well, this way.
> 
> is there a standard for DMI address bus locations?

Not really... I just made it all up :-)

Cheers,
Ben.

> l 
> 
> 
> 
> _______________________________________________
> OpenPOWER-HDL-Cores mailing list
> OpenPOWER-HDL-Cores@mailinglist.openpowerfoundation.org
> 
http://lists.mailinglist.openpowerfoundation.org/mailman/listinfo/openpower-hdl-cores
_______________________________________________
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

* Re: [libre-riscv-dev] [OpenPOWER-HDL-Cores] microwatt feature request: "switch off all optimisations" mode
From: Herrenschmidt, Benjamin @ 2020-08-03  1:39 UTC (permalink / raw)
  To: lkcl, libre-riscv-dev; +Cc: openpower-hdl-cores
In-Reply-To: <CAPweEDyEo9YjQBMLQDgdsn9gFbRi1OMuKMmjUida_vGsLD5sqg@mail.gmail.com>

On Mon, 2020-08-03 at 02:35 +0100, Luke Kenneth Casson Leighton wrote:
> 
> ah i was thinking more along the lines of agreeing a spec that suits
> both teams, even if the definitions are reserved for later
> implementation.

That's fine, the patch could be adding a debug-regs-spec.txt :-)

(Or we could use a .h as a spec, and use it in mw_debug)

Cheers,
Ben.

_______________________________________________
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

* [libre-riscv-dev] daily kan-ban update 04aug2020
From: Luke Kenneth Casson Leighton @ 2020-08-04 12:45 UTC (permalink / raw)
  To: Libre-RISCV General Development

tasks:

*
https://bugs.libre-soc.org/showdependencytree.cgi?id=383&maxdepth=1&hide_resolved=1

yesterday:

* add DMI interface

today:

* in litex sim add an FSM that interacts through the DMI, sets the core in
singlestep mode and gets the PC and other data

i will be able to dump the entire regfile this way and do a diff compare of
libresoc vs microwatt.

this will tell us exactly which instruction being executed is not doing the
correct thing.

l.



-- 
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
_______________________________________________
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

* Re: [libre-riscv-dev] daily kan-ban update 04aug2020
From: Luke Kenneth Casson Leighton @ 2020-08-04 15:34 UTC (permalink / raw)
  To: Libre-RISCV General Development
In-Reply-To: <CAPweEDwXLUq3=T6_=KhSNzcYqRerTAEGsmmC5MGhhuTpXhmQGA@mail.gmail.com>

On Tue, Aug 4, 2020 at 1:45 PM Luke Kenneth Casson Leighton
<lkcl@lkcl.net> wrote:

> i will be able to dump the entire regfile this way and do a diff compare of libresoc vs microwatt.
>
> this will tell us exactly which instruction being executed is not doing the correct thing.

ta-daaa, which is exactly what occurred.  the wishbone data-bus
request is not getting an "ACK" on a stw instruction, which means i
have a place to start investigating.

hurrah.

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

* Re: [libre-riscv-dev] daily kan-ban update 04aug2020
From: Tobias Platen @ 2020-08-04 17:18 UTC (permalink / raw)
  To: libre-riscv-dev
In-Reply-To: <CAPweEDwXLUq3=T6_=KhSNzcYqRerTAEGsmmC5MGhhuTpXhmQGA@mail.gmail.com>

today:

unit test for DualPortSplitter

_______________________________________________
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

* Re: [libre-riscv-dev] daily kan-ban update 04aug2020
From: Luke Kenneth Casson Leighton @ 2020-08-04 17:32 UTC (permalink / raw)
  To: Libre-RISCV General Development
In-Reply-To: <20200804191858.1cee35c7f297e6a40eae5ce5@platen-software.de>

On Tue, Aug 4, 2020 at 6:19 PM Tobias Platen
<libre-soc@platen-software.de> wrote:
>
> today:
>
> unit test for DualPortSplitter

ok great.  btw you saw that i had to revert a commit that you made:
please do ensure that you commit code that is "working" or at least
doesn't cause other people to not be able to do "work".  i've had to
do this three times now.

as best i can tell when i wrote the unit test for LDSTSplitter, the
"logic" behind LDSTSplitter is correct, however the mask works on
*bits* not bytes (sigh).

also: the left port needs to be for when addr[4] == 0 and the right
port for when addr[4] == 1.  this is achieved with a crossbar on
*both* the LD *and* ST data.

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

* Re: [libre-riscv-dev] daily kan-ban update 04aug2020
From: Tobias Platen @ 2020-08-05 16:40 UTC (permalink / raw)
  To: libre-riscv-dev
In-Reply-To: <CAPweEDzDOo1bjQFZwLszgeRx5OEGFUXQAbO3PnZV2KAGaOgdUg@mail.gmail.com>

On Tue, 4 Aug 2020 18:32:34 +0100
Luke Kenneth Casson Leighton <lkcl@lkcl.net> wrote:

> On Tue, Aug 4, 2020 at 6:19 PM Tobias Platen
> <libre-soc@platen-software.de> wrote:
> >
> > today:
> >
> > unit test for DualPortSplitter
> 
> ok great.  btw you saw that i had to revert a commit that you made:
Yes, I saw 
> please do ensure that you commit code that is "working" or at least
> doesn't cause other people to not be able to do "work".  i've had to
> do this three times now.
> 
> as best i can tell when i wrote the unit test for LDSTSplitter, the
> "logic" behind LDSTSplitter is correct, however the mask works on
> *bits* not bytes (sigh).
> 
> also: the left port needs to be for when addr[4] == 0 and the right
> port for when addr[4] == 1.  this is achieved with a crossbar on
> *both* the LD *and* ST data.
> l.
> 
> _______________________________________________
> libre-riscv-dev mailing list
> libre-riscv-dev@lists.libre-riscv.org
> http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev


-- 
Tobias Platen <libre-soc[at]platen-software[dot]de>

_______________________________________________
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

* Re: [libre-riscv-dev] daily kan-ban update 04aug2020
From: Tobias Platen @ 2020-08-05 16:48 UTC (permalink / raw)
  To: libre-riscv-dev
In-Reply-To: <20200805184058.c0b4c856e310d6f75f83d29c@platen-software.de>

On Wed, 5 Aug 2020 18:40:58 +0200
Tobias Platen <libre-soc@platen-software.de> wrote:

> On Tue, 4 Aug 2020 18:32:34 +0100
> Luke Kenneth Casson Leighton <lkcl@lkcl.net> wrote:
> 
> > On Tue, Aug 4, 2020 at 6:19 PM Tobias Platen
> > <libre-soc@platen-software.de> wrote:
> > >
> > > today:
> > >
> > > unit test for DualPortSplitter
> > 
> > ok great.  btw you saw that i had to revert a commit that you made:
> Yes, I saw 
> > please do ensure that you commit code that is "working" or at least
> > doesn't cause other people to not be able to do "work".  i've had to
> > do this three times now.
> > 
> > as best i can tell when i wrote the unit test for LDSTSplitter, the
> > "logic" behind LDSTSplitter is correct, however the mask works on
> > *bits* not bytes (sigh).
That might be the reason why I get an error when running the unit tests:
LenExpand 4 1 unsigned(16)
LenExpand 4 1 unsigned(16)
ldm 255 0b11010011
dlm 15 0b1100
dmask 0b11111111000000000000
dmask1 0b1111
dmask 0b1111000000000000
lds
send_ld
waiting
ld data1 0b11010011 0b11000000000000 12 0b1111000000000000
ld data2 16 0b0 0b1101
0b11 0b11010011
Traceback (most recent call last):
  File "addr_split.py", line 270, in <module>
    sim(dut)
  File "addr_split.py", line 261, in sim
    sim.run()
  File "/home/isengaara/Hacking/lSOC/TEST/nmigen/nmigen/sim/pysim.py", line 382, in run
    while self.advance():
  File "/home/isengaara/Hacking/lSOC/TEST/nmigen/nmigen/sim/pysim.py", line 371, in advance
    self._real_step()
  File "/home/isengaara/Hacking/lSOC/TEST/nmigen/nmigen/sim/pysim.py", line 347, in _real_step
    process.run()
  File "/home/isengaara/Hacking/lSOC/TEST/nmigen/nmigen/sim/_pycoro.py", line 120, in run
    self.coroutine.throw(exn)
  File "/home/isengaara/Hacking/lSOC/TEST/nmigen/nmigen/sim/_pycoro.py", line 61, in run
    command = self.coroutine.send(response)
  File "/home/isengaara/Hacking/lSOC/TEST/nmigen/nmigen/sim/pysim.py", line 265, in wrapper
    yield from process()
  File "addr_split.py", line 232, in send_ld
    assert ld_data_o == data
AssertionError
make: *** [Makefile:4: test_ldst_splitter] Fehler 1
I'll investigate that.
> > 
> > also: the left port needs to be for when addr[4] == 0 and the right
> > port for when addr[4] == 1.  this is achieved with a crossbar on
> > *both* the LD *and* ST data.
> > l.
> > 
> > _______________________________________________
> > libre-riscv-dev mailing list
> > libre-riscv-dev@lists.libre-riscv.org
> > http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
> 
> 
> -- 
> Tobias Platen <libre-soc[at]platen-software[dot]de>
> 
> _______________________________________________
> libre-riscv-dev mailing list
> libre-riscv-dev@lists.libre-riscv.org
> http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev


-- 
Tobias Platen <libre-soc[at]platen-software[dot]de>

_______________________________________________
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

* Re: [libre-riscv-dev] daily kan-ban update 04aug2020
From: Luke Kenneth Casson Leighton @ 2020-08-05 17:08 UTC (permalink / raw)
  To: Libre-RISCV General Development
In-Reply-To: <20200805184811.6e06ee8fa6b4a493dff57dd0@platen-software.de>

On Wed, Aug 5, 2020 at 5:48 PM Tobias Platen
<libre-soc@platen-software.de> wrote:

> > > as best i can tell when i wrote the unit test for LDSTSplitter, the
> > > "logic" behind LDSTSplitter is correct, however the mask works on
> > > *bits* not bytes (sigh).
> That might be the reason why I get an error when running the unit tests:
> LenExpand 4 1 unsigned(16)
> LenExpand 4 1 unsigned(16)

yes.  i started adding an option of expanding to bytes rather than
bits, ran into difficulties and, given that the code is unused
anywhere at the moment, left it.

if you go back through the git logs you will find what i added at the time.

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

* Re: [libre-riscv-dev] daily kan-ban update 04aug2020
From: Tobias Platen @ 2020-08-05 17:37 UTC (permalink / raw)
  To: libre-riscv-dev
In-Reply-To: <CAPweEDw9ORH6iSTUqn05P=zWL4qjJbAH80mHFdykFkHHU-kBZA@mail.gmail.com>

On Wed, 5 Aug 2020 18:08:04 +0100
Luke Kenneth Casson Leighton <lkcl@lkcl.net> wrote:

> > > > as best i can tell when i wrote the unit test for LDSTSplitter, the
> > > > "logic" behind LDSTSplitter is correct, however the mask works on
> > > > *bits* not bytes (sigh).
> > That might be the reason why I get an error when running the unit tests:
> > LenExpand 4 1 unsigned(16)
> > LenExpand 4 1 unsigned(16)

I found those two commits in the git history.

commit c4d90bf6e19f4a16adba68b8af9a7ae5005a7062
Author: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
Date:   Tue Jun 9 18:33:22 2020 +0100

    allow LenExpand to output both byte- and bit- mask expansion

commit f700880e9add726c01ace79e2a36e48faa83946c
Author: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
Date:   Tue Jun 9 14:01:06 2020 +0100

    expand LenExpand (haha) to cover bytes, with an argument "cover"
    all puns intentional


-- 
Tobias Platen <libre-soc[at]platen-software[dot]de>

_______________________________________________
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

* Re: [libre-riscv-dev] daily kan-ban update 04aug2020
From: Luke Kenneth Casson Leighton @ 2020-08-05 18:39 UTC (permalink / raw)
  To: Libre-RISCV General Development
In-Reply-To: <20200805193743.c1394fca391141c88693affd@platen-software.de>

On Wed, Aug 5, 2020 at 6:37 PM Tobias Platen
<libre-soc@platen-software.de> wrote:
>
> On Wed, 5 Aug 2020 18:08:04 +0100
> Luke Kenneth Casson Leighton <lkcl@lkcl.net> wrote:
>
> > > > > as best i can tell when i wrote the unit test for LDSTSplitter, the
> > > > > "logic" behind LDSTSplitter is correct, however the mask works on
> > > > > *bits* not bytes (sigh).
> > > That might be the reason why I get an error when running the unit tests:
> > > LenExpand 4 1 unsigned(16)
> > > LenExpand 4 1 unsigned(16)
>
> I found those two commits in the git history.

ok so the one you just changed, was this:

diff --git a/src/soc/scoreboard/addr_split.py b/src/soc/scoreboard/addr_split.py
index 0cd546ce..aa99f63c 100644
--- a/src/soc/scoreboard/addr_split.py
+++ b/src/soc/scoreboard/addr_split.py
@@ -100,7 +100,7 @@ class LDSTSplitter(Elaboratable):
         mzero = Const(0, mlen)
         m.submodules.ld1 = ld1 = LDLatch(self.dwidth, self.awidth-dlen, mlen)
         m.submodules.ld2 = ld2 = LDLatch(self.dwidth, self.awidth-dlen, mlen)
-        m.submodules.lenexp = lenexp = LenExpand(self.dlen, cover=8)
+        m.submodules.lenexp = lenexp = LenExpand(self.dlen)

and that got the unit test "working".... by *returning* LDSTSplitter
to do *bit* masking *not* byte masking.

this means that instead of having a 16 bit mask to cover 128 bits of
data,  a whopping *128* bit mask is needed and that's precisely what
we do not want.

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

* Re: [libre-riscv-dev] daily kan-ban update 04aug2020
From: Tobias Platen @ 2020-08-05 18:55 UTC (permalink / raw)
  To: libre-riscv-dev
In-Reply-To: <CAPweEDx=hnH4uuq-Aujn4xtwV9DFa+QSf5NCBy1O1oMF-4NQ0A@mail.gmail.com>

On Wed, 5 Aug 2020 19:39:20 +0100
Luke Kenneth Casson Leighton <lkcl@lkcl.net> wrote:

> this means that instead of having a 16 bit mask to cover 128 bits of
> data,  a whopping *128* bit mask is needed and that's precisely what
> we do not want.
I think now understand my mistake in thinking and how to solve the problem.

-- 
Tobias Platen <libre-soc[at]platen-software[dot]de>

_______________________________________________
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

* Re: [libre-riscv-dev] daily kan-ban update 04aug2020
From: Luke Kenneth Casson Leighton @ 2020-08-05 19:02 UTC (permalink / raw)
  To: Libre-RISCV General Development
In-Reply-To: <20200805205506.4836c315587bdc10c33064f2@platen-software.de>

On Wed, Aug 5, 2020 at 7:55 PM Tobias Platen
<libre-soc@platen-software.de> wrote:
>
> On Wed, 5 Aug 2020 19:39:20 +0100
> Luke Kenneth Casson Leighton <lkcl@lkcl.net> wrote:
>
> > this means that instead of having a 16 bit mask to cover 128 bits of
> > data,  a whopping *128* bit mask is needed and that's precisely what
> > we do not want.
> I think now understand my mistake in thinking and how to solve the problem.

cool.

basically, the mask is wishbone "sel", set to a granularity of 8 bits
(one byte) per bit of "sel".

if you read the wishbone spec, concentrating on when "sel" is not just
a single bit, you'll see clearly what is needed.

we are propagating that byte-per-bit mask RIGHT THE WAY THROUGH THE
ENTIRE DESIGN.

it starts at LD/ST - right back when a byte, half-word, word or dword
LD/ST is requested - and goes - will go - through the ENTIRE design

through PortInterface.

through LDSTSplitter.

through DataMerger.

through the L1 cache which will need to respect byte-level masks

through the L2 cache which will need to respect byte-level masks.

through the wishbone buses which will need to respect byte-level masks

through to the DDR / SDR bus which will *ALSO* need to respect byte-level masks.

eeeeverything and i *mean* everyting.

SDR (DDR1, SDRAM) does in fact accept byte-level masks.

if at any time we encounter a memory system which does *NOT* respect
byte-level masks, then we have a problem and will have to rethink.

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

* [libre-riscv-dev] Hello everyone
From: Umberto Cerrato @ 2020-09-25 12:37 UTC (permalink / raw)
  To: libre-riscv-dev

Hi,

I am new here.
I think I quite understood what’s this project about, but it will take some time to really understand everything.

In the meantime however, I would like to spend some of my free time to help you somehow. Mostly with simple tasks (not because of time, but for limited knowledge :) ).

I am really passionate about PowerPC architecture. I know you are “using” it for the project.
I would like to learn as much about PowerPC as possible. (Without stressing myself (much) :P).

I would like to work on the SVG conversion of the schematics. It seems easy enough to me and a great way to start doing something.

(I am not an engineer though, so a quick review of the images should be make. If I will find something I do not understand, I will pause and ask someone of you.)

Thank you

Cheers,
Umberto
_______________________________________________
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

page:   latest

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