Author Topic: RISC-V assembly language programming tutorial on YouTube  (Read 52355 times)

0 Members and 2 Guests are viewing this topic.

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: RISC-V assembly language programming tutorial on YouTube
« Reply #300 on: January 29, 2019, 01:06:41 pm »
And of course the videos that are the subject of this thread are narrated by WDs Chief Technical Officer.

I haven't yet watched the videos yet, I haven't had the time, and I don't have the embedded video-plugin enabled on my browser.

My knowledge about WD is more about their legacy hard-drives, because I happen to buy a thousand of legacy HDs (pATA and alike) per year in order to assist my customers. A lot of internet links to documentation about HDs are now gone, and Google has a dead-cache about that, but WD seems to have something backup-ed in the backstage, so I have mainly cared about this instead of their new homepage which redirects to their participation to RISC-V.

Anyway, even with a delay of fourteen months for being aware of what is happening ... well, that's a super nice and awesome news :D
« Last Edit: January 29, 2019, 01:14:16 pm by legacy »
 

Online asmi

  • Super Contributor
  • ***
  • Posts: 2728
  • Country: ca
Re: RISC-V assembly language programming tutorial on YouTube
« Reply #301 on: January 29, 2019, 06:23:57 pm »
Is there Risk-V assembler and C compiler for Windows? Preferably as a standalone executables which don't require any external components.

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11219
  • Country: us
    • Personal site
Re: RISC-V assembly language programming tutorial on YouTube
« Reply #302 on: January 29, 2019, 06:28:39 pm »
Is there Risk-V assembler and C compiler for Windows? Preferably as a standalone executables which don't require any external components.
Here you go https://github.com/gnu-mcu-eclipse/riscv-none-gcc/releases

And some corresponding documentation https://gnu-mcu-eclipse.github.io/toolchain/riscv/install/
Alex
 
The following users thanked this post: asmi

Online asmi

  • Super Contributor
  • ***
  • Posts: 2728
  • Country: ca
Re: RISC-V assembly language programming tutorial on YouTube
« Reply #303 on: January 29, 2019, 07:21:56 pm »
Here you go https://github.com/gnu-mcu-eclipse/riscv-none-gcc/releases

And some corresponding documentation https://gnu-mcu-eclipse.github.io/toolchain/riscv/install/
Beautiful, thank you! Now I don't have to write my own ;D Just gotta figure out how to make the toolchain output the file suitable for $readmemh command...

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11219
  • Country: us
    • Personal site
Re: RISC-V assembly language programming tutorial on YouTube
« Reply #304 on: January 29, 2019, 07:27:55 pm »
Beautiful, thank you! Now I don't have to write my own ;D Just gotta figure out how to make the toolchain output the file suitable for $readmemh command...

Here is a simple Makefile I use https://github.com/ataradov/riscv/blob/master/firmware/Makefile It includes a target for generating a *.mem file, which works with $readmemh().
Alex
 

Online asmi

  • Super Contributor
  • ***
  • Posts: 2728
  • Country: ca
Re: RISC-V assembly language programming tutorial on YouTube
« Reply #305 on: January 29, 2019, 08:02:00 pm »
Here is a simple Makefile I use https://github.com/ataradov/riscv/blob/master/firmware/Makefile It includes a target for generating a *.mem file, which works with $readmemh().
What is "od" in that file?
Also - I was able to print it in format that $readmemh understand using "objcopy -O verilog --reverse-bytes=4", but the problem is my memory is 4 bytes wide, and readmemh assumes that each byte is infact a full 32bit value. So far I couldn't find a way to get the objcopy to output data in 32bit chunks. I mean of course I can write a simple exe to do that, but I'm hoping there is a some "built-in" way of doing so... Or maybe I can redesign my memory to be byte-wide.
« Last Edit: January 29, 2019, 08:05:00 pm by asmi »
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11219
  • Country: us
    • Personal site
Re: RISC-V assembly language programming tutorial on YouTube
« Reply #306 on: January 29, 2019, 09:11:56 pm »
What is "od" in that file?
It is this utility http://man7.org/linux/man-pages/man1/od.1.html

I mean of course I can write a simple exe to do that, but I'm hoping there is a some "built-in" way of doing so...
This is probably the way to go. When I need to generate MIF file for Altera devices, I just created this https://github.com/ataradov/genmif after trying to cobble something from standard tools.
Alex
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf