Libre RISC-V Mailing list Archives (accessible via public-inbox)
 help / color / Atom feed
From: Michael Nolan <mtnolan2640@gmail.com>
To: libre-riscv-dev@lists.libre-riscv.org
Subject: Re: [libre-riscv-dev] daily kan-ban update 06may2020
Date: Wed, 6 May 2020 12:23:10 -0400
Message-ID: <d3063996-e91e-9f30-ce3a-496c5e8a27ae@gmail.com> (raw)
In-Reply-To: <CAPweEDyRnFhaT5tADj6ka+=Qo1RKUZjeafO9x8iFdGvXavy5yA@mail.gmail.com>

Working on branches in the power_pseudo simulator. I now have branch and 
link working, move to spr, and branch to lr and ctr working. I did run 
into an issue here though, in that the generated python is slightly 
broken in a way I'm not entirely sure I can fix inside the code 
generator. I added a way to automatically patch the generated python 
files to work around this.

The issue is in the following line:

         ctr_ok = BO[2] | (CTR[M:64] != 0) ^ BO[3]

It xors the result of comparing CTR to 0 (which is a bool) with BO[3] 
(Which is a selectableInt)
I'm not sure how to fix this aside from having the code generator 
surround every comparison expression with SelectableInt(x, bits=1)

--Michael

_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev

  parent reply index

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-06  9:37 Luke Kenneth Casson Leighton
2020-05-06 13:31 ` Tobias Platen
2020-05-06 14:58   ` Luke Kenneth Casson Leighton
2020-05-06 13:59 ` Yehowshua
2020-05-06 14:55   ` Luke Kenneth Casson Leighton
2020-05-06 16:23 ` Michael Nolan [this message]
2020-05-06 16:30   ` Luke Kenneth Casson Leighton
2020-05-06 16:33     ` Luke Kenneth Casson Leighton
2020-05-07  5:52 ` Jacob Lifshay
2020-05-07 10:17   ` Luke Kenneth Casson Leighton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d3063996-e91e-9f30-ce3a-496c5e8a27ae@gmail.com \
    --to=mtnolan2640@gmail.com \
    --cc=libre-riscv-dev@lists.libre-riscv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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