第一波
这里可以贴verilog高亮代码,果然是个好地方。
来试下高亮的效果吧,嘿嘿。
1 `define ON 1'b1 2 `define OFF 1'b0 3 4 module hello_here (/*AUTOARG*/ 5 // Outputs 6 rt, 7 // Inputs 8 clk_hw, path 9 ) ; 10 11 input clk_hw; 12 input [15:0] path; 13 output rt; 14 15 wire clk_hw; 16 wire [15:0] path; 17 18 reg reap=`OFF; 19 always @(posedge clk_hw) 20 begin 21 {reap,path[15:1]}<=path; 22 end 23 24 reg rt=`OFF; 25 always @ ( /*AUTOSENSE*/reap) begin 26 rt=reap; 27 end 28 29 endmodule // hello_here
折叠功能好像不大行啊。
ignorance is a rare blessing