Here is a simple way using the concatenation operator: module prob1(input wire a,b,c,d, output wire out); assign out = (a||d)&&(!d&&b&&c); endmodule module ... ... <看更多>
The following example is, however, legal. The parameter statement allows the programmer to give constants a name and serves a similar role that the const ... ... <看更多>