[Libre-soc-isa] [Bug 560] big-endian little-endian SV regfile layout idea
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Mon Jan 4 06:44:28 GMT 2021
https://bugs.libre-soc.org/show_bug.cgi?id=560
--- Comment #49 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Alexandre Oliva from comment #47)
> generally don't want to change their significance, only their order. You
> seem to have got them mixed up, which may be caused by this dyslexia you
> mention, or even be the root cause thereof.
that's why i pointed you at the microwatt source code, instead.
the XNOR of MSR.LE and the ld op where byterev=0 in the CSV file (or microwatt
equivslent) gives a 1
which means: perform the bytereverse.
therefore MSByte of memory goes into LSByte of regfile.
check rhe BR column
https://github.com/antonblanchard/microwatt/blob/39c826aa46a9dd80a12b572373c55d6156c4df07/decode1.vhdl#L283
search for the ld operation. you will seethat the BR column for ld is zero but
ldbrx it is 1.
0 XNOR 0 is 1. therefore bytereversing is performed.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Libre-SOC-ISA
mailing list