Hi, Is there a way to accomplish unique / priority with a for or while loop? For example: module test( input [3:0] sel_enc, input [3:0] in, output reg out ); always_comb begin out = 0; for(int i = 0; i < 5; i++) begin priority if(sel_enc == i) begin out = in[i]; end end end endmodule Most of my modules are parameterized, and these keywords don't help much when you can't write an explicit if else chain or case statement. Noah -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu May 15 13:18:39 2014
This archive was generated by hypermail 2.1.8 : Thu May 15 2014 - 13:18:54 PDT