Can you add/remove more than 1 item from a queue?
Can you add more than one item to a SystemVerilog queue using the concatenation operator? Yes, you can. Here's some code: module M; initial begin // Here's a queue, initialised with 3 members. (And a maximum // index of 8 - more on that story later). int i, numbers[$:8] = {1,2,3}; // Let's add a member to the front and another to the back // using concatenation. numbers = {numbers, 4}; $display("numbers= %p", numbers); numbers = {0, numbers}; $display("numbers= %p", numbers); // I told you you couldn't do this. I don't know where I got // that idea from. (I do remember trying and it not working). // Anyway, it works. numbers = {numbers, 5, 6}; ...