SpinalHDL / SpinalTemplateSbt

A basic SpinalHDL project
77 stars 64 forks source link

how to create a new project #5

Closed AshLeung closed 4 years ago

AshLeung commented 4 years ago

Hi, can u plz write a tutorial about how to create a spinalhdl project from scratch?

AshLeung commented 4 years ago

I write a script based on this template, it seems to be working now. But I have another question, how to specify the HDL generation directory instead of project root? https://github.com/AshLeung/SpinalHDL_Kit/blob/master/tools/create_prj.sh

Dolu1990 commented 4 years ago

Hi Basicaly, personnaly, i always clone this repo, and incrementaly go from it. I didn't tried to fgo from scartch since years ^^

Also, about the generation directory, you can specify an option in the SpinalConfig : ex : SpinalConfig(targetDirectory = "hardware/netlist").generateVerilog(xxx)

You can also define new default SpinalConfig, see : https://github.com/SpinalHDL/SaxonSoc/blob/24c8ba1bf4278cd3760c9edcca3a1c13672639aa/hardware/scala/saxon/package.scala

AshLeung commented 4 years ago

Thanks for your reply, I get it.