test code syntaxhighlighter

测试代码着色

代码
1 //priority coder
2  module priority(w,y,z);
3 input [3:0]w;
4 output reg [1:0]y;
5 output reg z;
6
7 always @(w)
8 begin
9 z=1;
10 casex(w)
11 4'b1xxx:y=3;
12 4'b01xx:y=2;
13 4'b001x:y=1;
14 4'b0001:y=0;
15 default:begin
16 z=0;
17 y=2'bx;
18 end
19 endcase
20 end
21
22 endmodule
23
原文地址:https://www.cnblogs.com/halflife/p/1683300.html