The-OpenROAD-Project / OpenLane

OpenLane is an automated RTL to GDSII flow based on several components including OpenROAD, Yosys, Magic, Netgen and custom methodology scripts for design exploration and optimization.
https://openlane.readthedocs.io/
Apache License 2.0
1.36k stars 374 forks source link

Errors found by linter #2162

Open Thanhdat1301 opened 1 month ago

Thanhdat1301 commented 1 month ago

Description

I am trying to add a verilog file to OpenLane. I followed the instructions in getting_started. Here I create a code counter file then run the following command ./flow.tcl -design . However it gives the following error. Does anyone have a fix for this? image

Proposal

No response

kareefardi commented 1 month ago

Can you upload your design and configuration files?

kareefardi commented 1 month ago

Also please follow the issue template and add the information from

python3 ./env.py issue-survey
Thanhdat1301 commented 1 month ago

I tested a simple counter file: // 4-bit counter module in Verilog module counter ( input wire clk, // Clock input input wire rst_n, // Active low reset input output reg [3:0] count // 4-bit counter output );

always @(posedge clk or negedge rst_n) begin if (!rst_n) count <= 4'b0000; // Reset counter to 0 else count <= count + 1; // Increment counter on clock edge end

endmodule I haven't changed anything in this config file, it's generated automatically from the commands I followed in getting_started

DESIGN_NAME "Demo" VERILOG_FILES "dir::src/*.v" CLOCK_PORT "clk" CLOCK_PERIOD 10 FP_PDN_MULTILAYER true

d-mitch-bailey commented 1 month ago

@Thanhdat1301 the design name is Demo, but the only module I see in the verilog is counter. Try changing the design name to counter or the verilog module to Demo

Thanhdat1301 commented 1 month ago

Thank you for answering my question. I tried your way but it still shows the error. Below is the error: image

d-mitch-bailey commented 1 month ago

@Thanhdat1301 Now the error message is Pitch x is too small. Try a fixed design size with

    "FP_SIZING": "absolute",
    "DIE_AREA": "0 0 1000 1000",
Thanhdat1301 commented 1 month ago

@d-mitch-bailey I found the place to change but I have a question these files are automatically generated when I run the command ./flow.tcl -design. So how do I run the file again after I've edited it or where I need to edit it in another place? Please help me

d-mitch-bailey commented 1 month ago

@Thanhdat1301 each design is synthesized and created using the openlane/<design>/config.json or openlane/<design>/config.json files. I don't think these are automatically generated.