... <看更多>
「verilog else if」的推薦目錄:
- 關於verilog else if 在 Re: [問題] verilog中if else和case合成後的差別- 看板Electronics 的評價
- 關於verilog else if 在 Verilog if else structure - Stack Overflow 的評價
- 關於verilog else if 在 Verilog if else if construct - Electrical Engineering Stack ... 的評價
- 關於verilog else if 在 FPGA学习笔记(四)——Verilog HDL条件语句与循环语句 - WD's ... 的評價
- 關於verilog else if 在 if...else if...else indentation · Issue #561 · veripool/verilog-mode 的評價
verilog else if 在 Verilog if else if construct - Electrical Engineering Stack ... 的推薦與評價
You have to look at the BNF to understand how code is parsed. Indenting makes code easier to read, but is meaningless for the compiler ... <看更多>
verilog else if 在 FPGA学习笔记(四)——Verilog HDL条件语句与循环语句 - WD's ... 的推薦與評價
1.if–else语句. 其格式与C语言中的if–else语句类似,使用方法有以下3种: ... ... <看更多>
verilog else if 在 if...else if...else indentation · Issue #561 · veripool/verilog-mode 的推薦與評價
Author Name: Abhishek Mishra Original Redmine Issue: 561 from https://www.veripool.org Original Date: 2012-09-11 Original Assignee: Michael ... ... <看更多>
verilog else if 在 Re: [問題] verilog中if else和case合成後的差別- 看板Electronics 的推薦與評價
※ 引述《hadbeen (你在哪)》之銘言:
: 那寫成
: if(a>1000) 執行ins4
: else if(a>100) 執行ins3
: else if(a>10) 執行ins2
: else 執行ins1
: 應該也是合出上面同義(function上同義)case敘述所合成出的電路吧?
: 那這樣的話兩種寫法差在哪?寫code的方便性嗎?(如果要寫case就要寫一大堆)
complier 愈來愈強時,寫簡單的 case 跟 if-else 並不會差太多
個人覺得後面這種條件的寫法會比 case 詳列簡單明暸
很難說 complier 可以把 case (類似真值表)的方式處理的跟 5-bit 比較器一樣好
個人感覺 complier 對 6~8 bits 的真值表跟 adder/comparer 處理大概到極限了
像有些 filter 對稱係數 64 個 case 查表
在進 case 查表前先對 input 做簡化去查 32 個係數的表應該會比較小
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.222.64.111
... <看更多>