ghdl / ghdl-yosys-plugin

VHDL synthesis (based on ghdl)
GNU General Public License v3.0
304 stars 31 forks source link

ERROR: No such command: ghdl (type 'help' for a command overview) #182

Closed wklam296 closed 1 year ago

wklam296 commented 1 year ago

I can't use the plugin, it appears error ERROR: No such command: ghdl (type 'help' for a command overview) after following the installing instruction. How can I solve the problem?

wklam296 commented 1 year ago

yosys \ -p \ "ghdl --std=08 --workdir=build -Pbuild --no-formal neorv32_iCEBreaker_BoardTop_UP5KDemo; \ synth_ice40 \ -top neorv32_iCEBreaker_BoardTop_UP5KDemo -dsp \ -json neorv32_iCEBreaker_UP5KDemo.json" 2>&1 | tee yosys-report.txt ERROR: No such command: ghdl (type 'help' for a command overview)

tgingold commented 1 year ago

It's a plugin you need to load. Try: yosys -m ghdl ...

wklam296 commented 1 year ago

yosys \ -m \ "ghdl --std=08 --workdir=build -Pbuild --no-formal neorv32_iCEBreaker_BoardTop_UP5KDemo; \ synth_ice40 \ -top neorv32_iCEBreaker_BoardTop_UP5KDemo -dsp \ -json neorv32_iCEBreaker_UP5KDemo.json" 2>&1 | tee yosys-report.txt

ERROR: Can't load module `./ghdl --std=08 --workdir=build -Pbuild --no-formal neorv32_iCEBreaker_BoardTop_UP5KDemo; synth_ice40 -top neorv32_iCEBreaker_BoardTop_UP5KDemo -dsp -json neorv32_iCEBreaker_UP5KDemo.json':

umarcor commented 1 year ago

@wklam296 see https://github.com/stnolting/neorv32-setups/blob/main/osflow/common.mk#L20 and https://github.com/stnolting/neorv32-setups/blob/main/osflow/synthesis.mk#L18.

wklam296 commented 1 year ago

I just followed the setup of neorv32 instruction make BOARD=iCEBreaker UP5KDemo , but appear ERROR: No such command: ghdl (type 'help' for a command overview)

yosys -p "ghdl --std=08 --workdir=build -Pbuild --no-formal neorv32_iCEBreaker_BoardTop_UP5KDemo; synth_ice40 -top neorv32_iCEBreaker_BoardTop_UP5KDemo -dsp -json neorv32_iCEBreaker_UP5KDemo.json" 2>&1 | tee yosys-report.txt ERROR: No such command: ghdl (type 'help' for a command overview)

I have installed this plug-in and still appear this error, how can i solve it? Thanks a lot.