![]() |
|
|
#12 |
|
Sep 2002
Database er0rr
468510 Posts |
I ordered another Longan Nano, this time making sure it came with the screen and case! I spent many hours trying to get something to work -- so I can run my aribitrary arithmetic development programs. I found this excellent page that has a download which when unzipped in the right place ran the screen in all its techocolour. I was then on a position to start hacking. This is not by running a debugger but making a changes and testing for the expected results on the screen. Oh what fun!
Last fiddled with by paulunderwood on 2020-11-29 at 16:03 |
|
|
|
|
|
#13 |
|
Aug 2002
21D216 Posts |
|
|
|
|
|
|
#14 | |
|
Sep 2002
Database er0rr
5·937 Posts |
Quote:
Edit; according to https://www.tomshardware.com/news/be...iscv-announced it had a dual core 64 bit U74 CPU. Last fiddled with by paulunderwood on 2021-01-16 at 17:05 |
|
|
|
|
|
|
#15 | |
|
∂2ω=0
Sep 2002
República de California
22·2,939 Posts |
GMP's Torbjörn Granlund weighs in on RISC-V, and does not mince words:
Quote:
|
|
|
|
|
|
|
#16 | |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
6,793 Posts |
Quote:
Consider the PIC16 instruction set. Performance-wise it is terrible. But the CPUs implementing it sell in large numbers. Clearly not many people buying those care much about the performance. Or if they do then they are in for a nasty shock. If my FPGA is small then perhaps RISC-V will be a perfect choice for a small low power controller device. |
|
|
|
|
|
|
#17 |
|
"Composite as Heck"
Oct 2017
2·52·19 Posts |
Does the relatively high number of registers (32 integer and 32 float registers is high right?) have a positive impact to compute-heavy operations?
I don't doubt they know what they're talking about, but having instructions for low and high words seems strange. If I'm interpreting it right they're saying that 64 bit addition on a 64bit Risc-V chip (that uses RV64I) does the operations with 32 bit integers? |
|
|
|
|
|
#18 | |
|
Sep 2002
Database er0rr
5·937 Posts |
Quote:
I like the small set of registers and instructions. They are easy to remember and therefore to program. Oh what fun! Takes me back to the days when I did assembly for the Zilog Z80 RISC-V comes in many flavours -- 32/64 bit, single/multi core, with or without multiplication etc -- It is an open ISA leaving it to hardware implementors to choose what they include. |
|
|
|
|
|
|
#19 | ||
|
Jun 2003
23·683 Posts |
Quote:
Quote:
|
||
|
|
|
|
|
#20 |
|
"Composite as Heck"
Oct 2017
2·52·19 Posts |
Thanks it makes sense now, what threw me is that the 64 bit base is defined in the riscv manual relative to the 32 bit base but there's no explicit redefinition of a word now being 64 bit (which should have been obvious), so I interpreted the example completely wrong. So the problem boils down to risc-v not having a carry bit which means there is no add-taking-into-account-previous-carry op, that is an issue.
|
|
|
|
|
|
#21 |
|
Sep 2009
46418 Posts |
I've met this issue programming in assembly language on a s/370-XA. But that design dates from the 1960s which is a partial explanation (it doesn't even have a stack!) There's no excuse for any IS designed after 1980 not to have a carry bit (unless a very cut down system where low power/cost override everything else).
Even a 8080 or a 6502 had a carry bit. |
|
|
|
|
|
#22 |
|
Sep 2002
Database er0rr
468510 Posts |
FWIW (not much) I implemented a base 3 Fermat PRP multi-limb test on my 32 bit Longan Nano. With a 16 bit model, a mult fits in in 32 bits with room for two 16 bit additions without overflow. I do sympathize with the GMP developers about the lack of instructions, but this is RISC and it is open and fun!
Last fiddled with by paulunderwood on 2021-10-06 at 16:14 |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| RISC-V | ewmayer | Hardware | 4 | 2019-10-26 18:02 |
| Mlucas on HP-UX/PA-RISC setup question | smoky | Mlucas | 14 | 2009-05-05 15:40 |