⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sub_b.v

📁 Gold Code Generators in Virtex Devices
💻 V
字号:
module sub_b (Clock, Enable, Reset, 	Fill_En_B, New_Fill_B, delayB0 );parameter cycleB0=26;parameter cycleB20=21;parameter width=1;input Clock;input Reset;input Enable;input Fill_En_B;input New_Fill_B;output [0:width-1] delayB0;wire [0:width-1] Data_In_B;wire [0:width-1] delayB20;wire [0:width-1] delayB0;reg [0:width-1] shiftB0 [cycleB0-1:0];reg [0:width-1] shiftB20 [cycleB20-1:0];integer k,l;assign Data_In_B = Fill_En_B ? New_Fill_B : (delayB20 ^ delayB0);always @ (posedge Clock)begin  if (Enable == 1) begin    for (k=cycleB0-1; k>0; k=k-1)      shiftB0[k] = shiftB0 [k-1];      shiftB0[0] = Data_In_B;	for (l=cycleB20-1; l>0; l=l-1)      shiftB20[l] = shiftB20 [l-1];	  shiftB20[0] = Data_In_B;  endendassign delayB20 = shiftB20[cycleB20-1];assign delayB0 = shiftB0[cycleB0-1];endmodule

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -