BrunoLevy / learn-fpga

Learning FPGA, yosys, nextpnr, and RISC-V
BSD 3-Clause "New" or "Revised" License
2.58k stars 245 forks source link

Basic/FOMU/FOMU_blink/makeit.sh: recognize different types of board (FOMU_REV) #44

Open vazhnov opened 3 years ago

vazhnov commented 3 years ago

I tried to run through this tutorial https://github.com/BrunoLevy/learn-fpga/blob/master/FemtoRV/TUTORIALS/FOMU.md and I found it doesn't work with my FOMU, which is the very first version, v0.0, here https://workshop.fomu.im/en/latest/requirements/hardware.html it is named "Hacker".

So I took logic and variables names from https://github.com/im-tomu/fomu-workshop/blob/master/hdl/board.mk and I copied board files from https://github.com/im-tomu/fomu-workshop/tree/master/pcf

Now my FOMU works with these commands:

export FOMU_REV=hacker
cd learn-fpga/Basic/FOMU/FOMU_blink
./makeit.sh

And now my FOMU blinks with RGB LED.

I'm not sure about license clean of the result:

But these files are board description, and they are probably trivial.

Another strange thing: file FemtoRV/BOARDS/fomu-pvt.pcf is different. I hope it's correct here https://github.com/im-tomu/fomu-workshop/blob/master/pcf/fomu-pvt.pcf

P.S.: I'm a newbie in all this FPGA world, so maybe I did something wrong.

vazhnov commented 3 years ago

@BrunoLevy , what do you think about this change?

vazhnov commented 3 years ago

I've asked the fomu-workshop project to share these files under more permissive license: https://github.com/im-tomu/fomu-workshop/issues/505

vazhnov commented 3 years ago

@BrunoLevy , could you please take a look at the answer https://github.com/im-tomu/fomu-workshop/issues/505 ?

BrunoLevy commented 3 years ago

Hi Alexey,Sure ! (I am currently with limited internet access, will integrate your pull request as soon as I get some wifi with my computer).Best wishes,--BrunoEnvoyé depuis mon appareil Galaxy -------- Message d'origine --------De : Alexey Vazhnov @.> Date : 06/08/2021 13:50 (GMT+01:00) À : BrunoLevy/learn-fpga @.> Cc : Bruno Levy @.>, Mention @.> Objet : Re: [BrunoLevy/learn-fpga] Basic/FOMU/FOMU_blink/makeit.sh: recognize different types of board (FOMU_REV) (#44) @BrunoLevy , could you please take a look at the answer im-tomu/fomu-workshop#505 ?

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

vazhnov commented 3 years ago

Just a reminder :)

vazhnov commented 2 years ago

Just a reminder-2022 :)