//ganerate regster addres always@(negedge wr or posedge cs) begin if(cs) counter<=0; else if(!cs) counter<=counter+1; end
//write data to regster always@(posedge wr) begin if(!cs) temp_reg[counter]<=data; end //sent data to inter regster,and come into effect with the rising edge of lock_up always@(posedge lock_up) begin frequence_word<={temp_reg[3],temp_reg[2],temp_reg[1],temp_reg[0]}; wave_select<=temp_reg[4][2:0]; clk_select <=temp_reg[4][7:4]; compare_word<=temp_reg[5]; end endmodule
zhangshaobing517_935512703 2009-8-27 20:09
用户1477991 2009-8-27 12:07
tengjingshu_112148725 2009-3-14 18:39
zhangshaobing517_935512703 2009-3-12 17:47
用户536736 2009-3-12 16:54
用户1532875 2008-12-7 11:44