Drink the driver of electric machinery about a pace

  • Time:
  • Click:508
  • source:EASCOR CNC Machining
Click here to see emulation figure: Http://img291.

Photo.

163.

Com/yswhu/32190484/962972640.

Jpgmodule Module1(fin, wr, cs, din, fout, rst);input Fin, wr, cs, rst;input [7:0] Din;output Fout;reg[9:0] Count;reg[7:0] Step, step_temp;reg Fout;//assign Fout = Count[SIZE-1];always @(negedge Wr Or Posedge Fout Or Negedge Rst)beginif(! Rst)beginstep = 1;endelse If(! Wr)beginif(! Cs)step_temp = Din;endelsebeginif(step<step_temp)step = Step+1b1;else If(step>step_temp)step = Step-1b1;else Step = Step_temp;endendalways @(posedge Fin)begincount <= Count+step;fout <= Count[9];endendmodule you can cite through this link this article: HTtp://yswhu.

Bokee.

Com/tb.

B? DiaryId=10560988 CNC Milling CNC Machining