'timescale 10ns/1ns
……
#1.6 set=1 //延遲時間是16ns。
……
不是應該是單位時間的整數倍么?16是10的1.6倍,1.6為整數倍?
新手求指教
uj5u.com熱心網友回復:
小數點怎么識別uj5u.com熱心網友回復:
是夏宇聞第三版Verilog數字系統設計教程,7.7.3時間尺度章節的例子程式,看到這不甚理解。。。。
uj5u.com熱心網友回復:
時間單位是10ns,你1.6,不就是16ns嗎?uj5u.com熱心網友回復:
10ns是你的時間單位,1ns是精度,所以你寫成1.64的話,也是只取1.6,對應就是16nsuj5u.com熱心網友回復:
不排除刊誤。例7.12下的那段文字,我找到IEEE標文檔案“IEEE Standard Verilog?Hardware
Description Language”
對應原文:“The ‘timescale 10 ns / 1 ns compiler directive specifies that the time unit for module test is 10 ns. As
a result, the time values in the module are multiples of 10 ns, rounded to the nearest 1 ns and, therefore, the
value stored in parameter d is scaled to a delay of 16 ns. This means that the value 0 is assigned to reg set
at simulation time 16 ns (1.6 × 10 ns), and the value 1 at simulation time 32 ns.”
中的multiples of 10 ns應譯為 “10ns的倍數”,并不是“integer multiples”整數倍。
uj5u.com熱心網友回復:
補充下,我所說的例7.12參考2樓第三版的書。第二版譯者選取的段落不同,但有同樣的問題。轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/57881.html
標籤:硬件設計
上一篇:無霧加濕器
