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

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

Open
xdnf opened this issue Nov 17, 2018 · 8 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@xdnf
Copy link

xdnf commented Nov 17, 2018

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.

@AleksandarKostovic
Copy link
Owner

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 AleksandarKostovic added help wanted Extra attention is needed bug Something isn't working labels Jan 24, 2019
@GiacintoCifelli
Copy link

GiacintoCifelli commented Oct 8, 2019

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 (

@AleksandarKostovic
Copy link
Owner

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 😃

@Saad525
Copy link

Saad525 commented Sep 26, 2020

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
Copy link

Saad525 commented Sep 26, 2020

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

@Superstite
Copy link

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

@Saad525
Copy link

Saad525 commented Mar 23, 2021

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

@Superstite
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants