Riscy-SoC icon indicating copy to clipboard operation
Riscy-SoC copied to clipboard

ERROR: Module `\cpu_mem' referenced in module `\cpu' in cell `\mem' is not part of the design

Open xdnf opened this issue 6 years ago • 8 comments

yosys -p 'synth_ice40 -top top -json top.json' top.v .... .... .... 2.2.1. Analyzing design hierarchy.. Top module: \top Used module: \timer Used module: \uart Used module: \ram Used module: \cpu Used module: \bus_arbiter Used module: \sync ERROR: Module \cpu_mem' referenced in module \cpu' in cell `\mem' is not part of the design.

xdnf avatar Nov 17 '18 05:11 xdnf

I am aveare of the issue, i should have opened that myself.

If i find time i will defenetly work to fix it. However if you try to fix it i would be very pleased to merge the changes.

AleksandarKostovic avatar Nov 17 '18 05:11 AleksandarKostovic

Hi! It goes over this issue with the following changes in cpu.v:

-    cpu_hazard_unit hazard_unit (
+    hazard_unit hazard_unit (

-    cpu_fetch fetch (
+    fetch fetch (

-    cpu_decode decode (
+    decode decode (
 
-    cpu_execute execute (
+    execute execute (

-    cpu_mem mem (
+    mem mem (

GiacintoCifelli avatar Oct 08 '19 07:10 GiacintoCifelli

Hi! It goes over this issue with the following changes in cpu.v:

-    cpu_hazard_unit hazard_unit (
+    hazard_unit hazard_unit (

-    cpu_fetch fetch (
+    fetch fetch (

-    cpu_decode decode (
+    decode decode (
 
-    cpu_execute execute (
+    execute execute (

-    cpu_mem mem (
+    mem mem (

I have submitted the changes. Please try now :smiley:

AleksandarKostovic avatar Oct 11 '19 08:10 AleksandarKostovic

Hi @AleksandarKostovic , I am having same issue while synthesizing my design on Yosys. Changed the instance name as same as submodule name but still getting this error ERROR: Module '\my_mod' referenced in module '\my_top_mod' in cell '\my_mod' is not part of the design Can you please help it out?

Saad525 avatar Sep 26 '20 21:09 Saad525

Never mind. Just figured it out. Included file in project, now it works.

Saad525 avatar Sep 26 '20 21:09 Saad525

Hi @Saad525 . I am having the same issue. Can you please tell me what your solution is? Thanks in advance.

Superstite avatar Mar 22 '21 19:03 Superstite

@Superstite i think it was resolved by including that file (the module of which is instantiated) in top file. `include "your_file_name.v"

Saad525 avatar Mar 23 '21 13:03 Saad525

@Superstite i think it was resolved by including that file (the module of which is instantiated) in top file. `include "your_file_name.v"

Hi, thanks @Saad525.

Superstite avatar Mar 24 '21 09:03 Superstite