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

📄 find_first_one.v

📁 Verilog HDL 高级数字设计源码 _chapter5
💻 V
字号:
module find_first_one (index_value, A_word, trigger);
  output [3: 0] 	index_value;
  input 	[15: 0]	A_word;
  input 		trigger;
  reg 	[3: 0] 	index_value;
	
  always @  (trigger)
  begin: search_for_1
    index_value = 0;
    for (index_value = 0; index_value <= 15; index_value = index_value + 1)
    if (A_word[index_value] == 1) disable search_for_1;
  end
endmodule

⌨️ 快捷键说明

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