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

0 Members and 1 Guest are viewing this topic.

Offline legacy

  • Super Contributor
  • ***
  • Posts: 3846
  • Country: ch
Re: RISC-V assembly language programming tutorial on YouTube
« Reply #300 on: January 30, 2019, 12:06:41 am »
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 30, 2019, 12:14:16 am by legacy »
if someone has some skill with optical fibre channel, please contact me in private! Thanks!
 

Offline asmi

  • Frequent Contributor
  • **
  • Posts: 619
  • Country: ca
Re: RISC-V assembly language programming tutorial on YouTube
« Reply #301 on: January 30, 2019, 05:23:57 am »
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: 5457
  • Country: us
    • Personal site
Re: RISC-V assembly language programming tutorial on YouTube
« Reply #302 on: January 30, 2019, 05:28:39 am »
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

Offline asmi

  • Frequent Contributor
  • **
  • Posts: 619
  • Country: ca
Re: RISC-V assembly language programming tutorial on YouTube
« Reply #303 on: January 30, 2019, 06:21:56 am »
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: 5457
  • Country: us
    • Personal site
Re: RISC-V assembly language programming tutorial on YouTube
« Reply #304 on: January 30, 2019, 06:27:55 am »
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
 

Offline asmi

  • Frequent Contributor
  • **
  • Posts: 619
  • Country: ca
Re: RISC-V assembly language programming tutorial on YouTube
« Reply #305 on: January 30, 2019, 07:02:00 am »
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 30, 2019, 07:05:00 am by asmi »
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 5457
  • Country: us
    • Personal site
Re: RISC-V assembly language programming tutorial on YouTube
« Reply #306 on: January 30, 2019, 08:11:56 am »
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