Libre RISC-V Mailing list Archives (accessible via public-inbox)
 help / color / Atom feed
* [libre-riscv-dev] microwatt decoder tables: M-Form and X-Form switched RS and RB
@ 2020-06-01 12:20 Luke Kenneth Casson Leighton
  2020-06-01 23:13 ` [libre-riscv-dev] [OpenPOWER-HDL-Cores] " Paul Mackerras
  0 siblings, 1 reply; 6+ messages in thread
From: Luke Kenneth Casson Leighton @ 2020-06-01 12:20 UTC (permalink / raw)
  To: openpower-hdl-cores; +Cc: Libre-RISCV General Development

anton, paul, and team, hi,

we noticed that in microwatt decode1.vhdl tables, M-Form has:

* op1 is RA
* op2 is a constant or RB, which is in the *3rd* field (M-Form) position
* op3 is RS, which is in the *second* Form position

where in X-Form it is:

* op1 is RA
* op2 is a constant or RB, where RB is from the *2nd* field
* op3 is RS (or RC), which is in the 3rd position.

so decode1.vhdl has this, for rldcl:
0b1000,SHIFT_ROT,OP_RLCL,NONE,RB,RS,RA

we're going to flip that to:
0b1000,SHIFT_ROT,OP_RLCL,NONE,RS,RB,RA

this will put the shift-rot pipeline "in line" with the arithmetic
(and logical) ones.

it *might* be the case that if you did the same thing, you would be
able to cut at least one pair of 64-bit MUXes from microwatt, because
RS and RB (2nd and 3rd operands) would no longer be
special-case-swapped for any Shift-Rot operations.  i mention it
because microwatt is intended to be tiny.

best,

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	[flat|nested] 6+ messages in thread

end of thread, back to index

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-01 12:20 [libre-riscv-dev] microwatt decoder tables: M-Form and X-Form switched RS and RB Luke Kenneth Casson Leighton
2020-06-01 23:13 ` [libre-riscv-dev] [OpenPOWER-HDL-Cores] " Paul Mackerras
2020-06-02  0:01   ` [libre-riscv-dev] " Luke Kenneth Casson Leighton
2020-06-02 12:10     ` Luke Kenneth Casson Leighton
2020-06-03  0:40       ` [libre-riscv-dev] [OpenPOWER-HDL-Cores] " Paul Mackerras
2020-06-03  1:28         ` 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