Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to resolve the UCN -1 error in Design Compiler?

Status
Not open for further replies.

ykk

Newbie
Newbie level 1
Joined
Oct 26, 2020
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
10
I have a block for 2's complement in Arithmetic module of a ALU. In the netlist synthesized by Synopsys Design compiler, I find that the 2's complement block output LSB is assigned to input LSB.
ie, assign y[0] = inp[0];
UCN -1 error due to multiple nets to inp. How can I rectify this?


Code Verilog - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
module twos_comp(inp,x,y);
  input [7:0] inp;
  input x;
  output reg [7:0] y;
always @(inp or x)
begin
if (x)
y = (~inp) + 1'b1;
else
y = inp;
end
endmodule

 
Last edited by a moderator:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top