Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello world simulating optimization failed error #895

Closed
vidushiy25 opened this issue Oct 23, 2023 · 4 comments
Closed

Hello world simulating optimization failed error #895

vidushiy25 opened this issue Oct 23, 2023 · 4 comments
Labels
Component:Verif For issues in the verification environment or test cases (e.g. for testbench, C code, etc.) Status:Wont-fix Issue will not be fixed

Comments

@vidushiy25
Copy link

vidushiy25 commented Oct 23, 2023

Hi, I want to use the cv32e40p core for a project and I am just trying to run a simulation for the first time. However it gives me 2 errors : Top level modules:
tb_top

Analyzing design...
-- Loading module tb_top
-- Loading module cv32e40p_tb_subsystem
-- Loading module cv32e40p_top
-- Importing package cv32e40p_apu_core_pkg
** Error (suppressible): cv32e40p_tb_subsystem.sv(74): (vopt-2732) Module parameter 'PULP_XPULP' not found for override.
** Error (suppressible): cv32e40p_tb_subsystem.sv(75): (vopt-2732) Module parameter 'PULP_CLUSTER' not found for override.
-- Loading module cv32e40p_core
-- Importing package cv32e40p_pkg
-- Loading module cv32e40p_sleep_unit
-- Loading module cv32e40p_clock_gate
-- Loading module cv32e40p_if_stage
-- Loading module cv32e40p_prefetch_buffer
-- Loading module cv32e40p_prefetch_controller
-- Loading module cv32e40p_fifo
-- Loading module cv32e40p_obi_interface
-- Loading module cv32e40p_aligner
-- Loading module cv32e40p_compressed_decoder
-- Loading module cv32e40p_id_stage
-- Importing package cv32e40p_fpu_pkg
-- Loading module cv32e40p_register_file
-- Loading module cv32e40p_decoder
-- Loading module cv32e40p_controller
-- Loading module cv32e40p_int_controller
-- Loading module cv32e40p_ex_stage
-- Loading module cv32e40p_alu
-- Loading module cv32e40p_popcnt
-- Loading module cv32e40p_ff_one
-- Loading module cv32e40p_alu_div
-- Loading module cv32e40p_mult
-- Loading module cv32e40p_load_store_unit
-- Loading module cv32e40p_cs_registers
-- Loading module mm_ram
-- Loading module amo_shim
-- Loading module dp_ram
-- Loading module riscv_rvalid_stall
-- Importing package perturbation_pkg
-- Loading module riscv_gnt_stall
-- Loading module cv32e40p_random_interrupt_generator
Optimization failed
End time: 16:57:29 on Oct 23,2023, Elapsed time: 0:00:00
Errors: 2, Warnings: 1
make: *** [.opt-rtl] Error 2

I have attached the makefile here:
Makefile.zip

All I did was remove the VVERSION suffix in my makefile and added the riscv toolchain path.

@MikeOpenHWGroup
Copy link
Member

Hi @vidushiy25. Thanks for your interest in OpenHW. Can you share all the shell commands you used, starting with git clone.... A couple of other things to point out:

  • it seems you are running MACOSX. AFAIK, our scripts have never been tested on that OS.
  • this "example-tb" is not the one we use for verification of this core. For that, check out core-v-verif. If you are interested in the CV32E40P, then I suggest you work with the `cv32e40p/dev/ branch of core-v-verif.

@vidushiy25
Copy link
Author

Hi, I am using NoMachine to log onto a Windows desktop. Regardless, I did get the simulation running but yes I did find out that this example_tb is not the one to use for this core. I will be using what you pointed out. Thanks

@MikeOpenHWGroup
Copy link
Member

I am using NoMachine to log onto a Windows desktop

I am not aware of anyone who has successfully used our IP and scripts on a Windows platform. Not recommended.

@vidushiy25
Copy link
Author

Sorry, I meant I am using NoMachine to access the Linux desktop not Windows.

@MikeOpenHWGroup MikeOpenHWGroup added Status:Wont-fix Issue will not be fixed Component:Verif For issues in the verification environment or test cases (e.g. for testbench, C code, etc.) labels Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:Verif For issues in the verification environment or test cases (e.g. for testbench, C code, etc.) Status:Wont-fix Issue will not be fixed
Projects
None yet
Development

No branches or pull requests

2 participants