[Libre-soc-dev] daily kan-ban update 09mar2021

Tobias Platen libre-soc at platen-software.de
Tue Mar 9 19:10:58 GMT 2021


I just had a look at _get_prtable_addr which takes an argument shift.
I guess shift depends on the page size. From Paul's talk I know that
Microwatt supports different page sizes.

def _get_prtable_addr(self, shift, prtbl, addr, pid):
        """
        if r.addr(63) = '1' then
            effpid := x"00000000";
        else
            effpid := r.pid;
        end if;
        x"00" & r.prtbl(55 downto 36) &
                ((r.prtbl(35 downto 12) and not finalmask(23 downto 0)) or
                (effpid(31 downto 8) and finalmask(23 downto 0))) &
                effpid(7 downto 0) & "0000";
        """
        finalmask = genmask(shift, 44)
        finalmask24 = finalmask[20:44]
	......

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



More information about the Libre-soc-dev mailing list