mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-29 23:43:16 +00:00
Removed $bu0 cell type
This commit is contained in:
parent
b9cb483f3e
commit
8927aa6148
18 changed files with 27 additions and 103 deletions
|
@ -53,30 +53,6 @@ endgenerate
|
|||
endmodule
|
||||
|
||||
|
||||
// --------------------------------------------------------
|
||||
|
||||
module \$bu0 (A, Y);
|
||||
|
||||
parameter A_SIGNED = 0;
|
||||
parameter A_WIDTH = 0;
|
||||
parameter Y_WIDTH = 0;
|
||||
|
||||
input [A_WIDTH-1:0] A;
|
||||
output [Y_WIDTH-1:0] Y;
|
||||
|
||||
generate
|
||||
if (!A_SIGNED && 0 < A_WIDTH && A_WIDTH < Y_WIDTH) begin:BLOCK1
|
||||
assign Y[A_WIDTH-1:0] = A;
|
||||
assign Y[Y_WIDTH-1:A_WIDTH] = 0;
|
||||
end else if (A_SIGNED) begin:BLOCK2
|
||||
assign Y = $signed(A);
|
||||
end else begin:BLOCK3
|
||||
assign Y = A;
|
||||
end
|
||||
endgenerate
|
||||
|
||||
endmodule
|
||||
|
||||
// --------------------------------------------------------
|
||||
|
||||
module \$pos (A, Y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue