File size: 2,314 Bytes
660c0b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Running a simple combinatorial design

Tool: OpenDB

Subcategory: Module name mismatch

## Conversation

### Dandy201
Hi all, I'm new to using ORFS and tried some tutorials from https://github.com/The-OpenROAD-Project/micro2022tutorial. 
![image](https://github.com/The-OpenROAD-Project/OpenROAD/assets/172090682/8a6e4ccd-503a-4751-8ead-8c1c5d209890)

Completing exercise 5 got this simple output:
![image](https://github.com/The-OpenROAD-Project/OpenROAD/assets/172090682/63ead36e-c51b-456b-9526-819d76f8a209).

From this, I'm trying to make a simple combinational circuit. Running make DESIGN_CONFIG=../../half_Adder/config.mk, it always ends at this error:

7. Executing Verilog-2005 frontend: /home/dan/Desktop/Work/vlsi/tools/OpenROAD-flow-scripts/flow/platforms/asap7/yoSys/cells_clkgate_R.v
Using ABC speed script.
[FLOW] Extracting clock period from SDC file: ./results/asap7/halfAdder/base/clock_period.txt

[FLOW] Setting clock period to 5

8. Executing SYNTH pass.

8.1. Executing HIERARCHY pass (managing design hierarchy).

**ERROR: TCL interpreter returned an error: Yosys command produced an error

Command exited with non-zero status 1

Elapsed time: 0:00.59[h:]min:sec. CPU time: user 0.56 sys 0.02 (99%). Peak memory: 72508KB.

make[1]: *** [Makefile:496: do-yosys] Error 1

make: *** [Makefile:499: results/asap7/halfAdder/base/1_1_yosys.v] Error 2.**



Config file

![image](https://github.com/The-OpenROAD-Project/OpenROAD/assets/172090682/324abeb8-c78c-42a6-906f-811f9c4134b6)



Constraint file

![image](https://github.com/The-OpenROAD-Project/OpenROAD/assets/172090682/c305c964-35a7-4fae-b038-7cbb9539f98d)



Verilog file

![image](https://github.com/The-OpenROAD-Project/OpenROAD/assets/172090682/fe9cc773-67be-4235-a4b5-b66b06dee795)









### maliberty
Please package this as a standalone test case and attach it.  Reproducing it from screen shots is inefficient.

### Dandy201
[try.zip](https://github.com/user-attachments/files/15751707/try.zip)



Here's the  zip file along with the command : make DESIGN_CONFIG=../../try/config.mk


### mi-and-core
(1) change module name from 'half_adder' to 'halfAdder'



### maliberty
In the config.mk

```

export DESIGN_NAME = halfAdder
```

while in halfAdder.v:

```
module half_adder(

```

These names need to match.