Wire cells

yosys> help $concat

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

Properties:

is_evaluable

Simulation model (verilog)
Listing 213 simlib.v
1503module \$concat (A, B, Y);
1504
1505    parameter A_WIDTH = 0;
1506    parameter B_WIDTH = 0;
1507
1508    input [A_WIDTH-1:0] A;
1509    input [B_WIDTH-1:0] B;
1510    output [A_WIDTH+B_WIDTH-1:0] Y;
1511
1512    assign Y = {B, A};
1513
1514endmodule
yosys> help $slice
Properties:

is_evaluable

Simulation model (verilog)
Listing 214 simlib.v
1482module \$slice (A, Y);
1483
1484    parameter OFFSET = 0;
1485    parameter A_WIDTH = 0;
1486    parameter Y_WIDTH = 0;
1487
1488    input [A_WIDTH-1:0] A;
1489    output [Y_WIDTH-1:0] Y;
1490
1491    assign Y = A >> OFFSET;
1492
1493endmodule