cpc / openasip

Open Application-Specific Instruction Set processor tools (OpenASIP)
http://openasip.org
Other
143 stars 43 forks source link

How to generate the RTL? #259

Closed erenyagami closed 4 months ago

erenyagami commented 5 months ago

I am trying to generate the RTL and add custom instructions to improve AI kernels (convolution etc.) for RISCV . To compile the source code for this architecture with command _oacc-riscv -O0 -a start.adf --output-format=bin -o conv.img conv._c

To simulate the processor in RTL simulation, generate the processor RTL and its test-bench: generateprocessor -o riscv-proc -t start.adf

After this generate the HDL packages, generatebits -x riscv-proc start.adf

Then moving to the riscv-proc folder, Compile and simulate the the VHDL source files with the script _./ghdlcompile.sh _./ghdlsimulate.sh -r 100000

I found the latency/cycles values and hdl_sim_stdout.txt file.

The ghdl_compile is using this Screenshot from 2024-04-30 18-51-59

I wanted to know how I can generate the RTL or how I can proceed on it?

Thank you for your time.

karihepola commented 5 months ago

The RTL was generated with the command generateprocessor -o riscv-proc -t start.adf. This outputs the RTL in VHDL to the riscv-proc directory. You can find the source files for the core under the vhdl and gcu_ic subdirectories, where tta0 is the toplevel core design.

erenyagami commented 4 months ago

Thank You for clearing the doubt.