... <看更多>
「verilog signed」的推薦目錄:
- 關於verilog signed 在 [問題] Verilog 有號數問題- 看板Electronics - 批踢踢實業坊 的評價
- 關於verilog signed 在 Verilog signed vs unsigned samples and first - Stack Overflow 的評價
- 關於verilog signed 在 Understanding signed numbers in Verilog ... 的評價
- 關於verilog signed 在 Signed and Unsigned Addition in Verilog|System Functions 的評價
- 關於verilog signed 在 Verilog-Implementation-of-a-64-bit-Signed-Binary-Multiplier ... 的評價
- 關於verilog signed 在 [問題] verilog的合成問題 的評價
verilog signed 在 Understanding signed numbers in Verilog ... 的推薦與評價
For my Verilog code, I am trying to define a 64 bit array, like this input signed [63:0] var_name. This array is broken up such that it is 8 ... ... <看更多>
相關內容
verilog signed 在 Verilog-Implementation-of-a-64-bit-Signed-Binary-Multiplier ... 的推薦與評價
GitHub - alice820621/Verilog-Implementation-of-a-64-bit-Signed-Binary-Multiplier-Divider-Circuit: There are no explicit arithmetic operators used in the ... ... <看更多>
verilog signed 在 [問題] verilog的合成問題 的推薦與評價
[問題]verilog的合成問題@electronics,共有16則留言,7人參與討論,5推0 ... 跟input signed [3:0] a,b;output signed [3:0] c ;assign c = a + b; ... ... <看更多>
verilog signed 在 [問題] Verilog 有號數問題- 看板Electronics - 批踢踢實業坊 的推薦與評價
我寫了一個計數器
reg [31:0] B1;
其數值在0~20000間計數。
還有一個有號數 ADC
reg signed [13:0] ADC;
其數值在-8192~8192間變化
另外有一個訊號線
wire [15:0] Duty;
assign Duty = ADC + 8192;
即使ADC加上一正值變為正數
輸出為PWM
output PWM
assign PWM = (B1 > Duty);
若計數器 B1 大於 Duty 時,則輸出為High。
但今天遇到一個問題:
若ADC為負值(ex: ADC = -1966)時,輸出訊號出現錯誤的情況,輸出全為Low。
若直接 assign Duty = (-1966)+8192; 則輸出訊號正確。
不知道為甚麼會發生這個情況,可否請板上先進不吝指導。
謝謝。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.118.202.20
... <看更多>