Wire cells

yosys> help $concat

Concatenation of inputs into a single output ( Y = {B, A} ).

Properties:

is_evaluable

Simulation model (verilog)
Listing 235 simlib.v
1617module \$concat (A, B, Y);
1618
1619    parameter A_WIDTH = 0;
1620    parameter B_WIDTH = 0;
1621
1622    input [A_WIDTH-1:0] A;
1623    input [B_WIDTH-1:0] B;
1624    output [A_WIDTH+B_WIDTH-1:0] Y;
1625
1626    assign Y = {B, A};
1627
1628endmodule
yosys> help $slice
Properties:

is_evaluable

Simulation model (verilog)
Listing 236 simlib.v
1596module \$slice (A, Y);
1597
1598    parameter OFFSET = 0;
1599    parameter A_WIDTH = 0;
1600    parameter Y_WIDTH = 0;
1601
1602    input [A_WIDTH-1:0] A;
1603    output [Y_WIDTH-1:0] Y;
1604
1605    assign Y = A >> OFFSET;
1606
1607endmodule