Chip123 科技應用創新平台

 找回密碼
 申請會員

QQ登錄

只需一步,快速開始

Login

用FB帳號登入

搜索
1 2 3 4
查看: 7441|回復: 5
打印 上一主題 下一主題

[問題求助] verilog 觸發的問題

[複製鏈接]
跳轉到指定樓層
1#
發表於 2009-3-26 19:44:35 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
請問....
; m* ]- ]' C' ^* `    always (*). c' W: ]0 g: M# a3 O2 n
     begin' l' D6 w! @" x) `2 D/ ?9 K0 r
      if(!rstn) r1 = r2 + r3 ;, D4 d8 a7 Q0 q" a) ~' N
      else      r1 = r5 << 4;
" V9 o( d: m8 a' t# w     end" n% h% U, `3 n0 w4 X6 p7 G% L
    請問*是表示r2.r3.r5的意思嗎,如果是像這樣子的寫法是否能夠合成9 e% v, ^* O! k1 h0 I' N3 ~! W
   
0 C/ u0 L# g4 b  h     小弟才疏學淺...謝謝各位大大
分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享分享 頂 踩 分享分享
2#
發表於 2009-3-31 19:57:31 | 只看該作者
敏感表中不仅是要传送的值(r2,r3,r5),还包括判断条件(rstn)
3#
發表於 2009-4-4 08:50:12 | 只看該作者
敏感列是只要那個變數有變化,就重新判斷一次, * 應該是沒有效果才對,
# I3 z$ x4 d+ g你這樣寫法應該會造成出來的值是跟你所要的不同結果。
4#
發表於 2009-4-17 18:46:58 | 只看該作者
可以合成 !!6 u) T! E) K, F% y/ M, e
不過應該是這樣吧% }' t! _$ ]; N

4 p9 n# Z2 _- @& z" N% U! I$ Calways @(*)
# S' j5 ^2 N' i8 f" N+ k     begin
& v" ]! A! C. _' x      if(!rstn) r1 = r2 + r3 ;- O* H) d( I0 l& ^4 R! d3 S+ z
      else      r1 = r5 << 4;
' q( T7 e& L, a# T' K- M9 y$ L     end
5#
發表於 2009-4-22 18:30:29 | 只看該作者
這個是 verilog 2001 的語法喔
6#
發表於 2009-4-28 12:44:19 | 只看該作者
Verilog-2001 added the much acclaimed @* combinational sensitivity list. The primary intent of this enhancement
. `/ e, F9 X: o* r! lwas to create concise, error-free combinational always blocks. The @* basically means, "if Synopsys DC wants the& A5 ?& X- ?4 U$ Q% M# k5 p
combinational signal in the sensitivity list, so do we!"
7 ?6 q0 I! ~5 j% U+ EExample 1 and Example 2 show the Verilog-1995 and Verilog-2001 versions respectively of combinational) R  H# n- L; u$ `" w. I
sensitivity lists for the combinational always block of any of the three always block fsm1 coding styles.
) G  G5 n' y) l
9 q# W& n( O# B* Aalways @(state or go or ws)% m& x* X$ n/ y5 Y& s
begin
& h+ m& ?4 [& {, T" d' s9 Q" s! k7 F..." ~8 k/ @- j8 K  v& A2 D( }
end" r" m9 C8 R  s0 l" I
//Example 1
1 \9 S& ?9 G. e
1 h" ]( g/ p1 J! V1 z  ], M# X& Z5 w$ i3 y1 K6 @7 d
always @*2 b7 |) n; G4 v6 z: T
begin# ?- _# I3 `: X; b& h! a
...& _6 ?; |% Q# {& M/ v
end
+ W8 `( d2 q/ s# w//Example 2
* y( ^, r# R" U7 F) d1 K) A& w
/ W( _* ?+ J) ]5 XThe @* combinational sensitivity list as defined in the IEEE Verilog-2001 Standard can be written with or without
3 n7 u) a+ B; u5 `2 s" R3 Z; Iparentheses and with or without spaces as shown in Example 3. Unfortunately (* is the token that is used to open
7 V( {* g6 o" `* M; m: pa Verilog-2001 attribute, so there is some debate about removing support for all but the always @* form of this4 ?  U8 o0 e' F: w( W8 O8 v7 |; P
combinational sensitivity list. In-house tools would probably also be easier to write if the in-house tools did not2 f; U3 U& Y. G! i6 T) p- H1 B
have to parse anything but the most concise @* form. For these reasons, I recommend that users restrict their usage
. Z6 g& \+ v) ?6 R+ o/ ]* U  F! V) nof the combinational sensitivity list to the @* form.
  P" \) q+ l$ h; {always @*
, B2 p) \% C% jalways @ *
; C7 c2 Q; q" f4 K% talways @(*)
( g0 R3 V1 K# A/ I+ V% talways @ ( * )
1 ~' j! ~  M% d$ K//Example 3
您需要登錄後才可以回帖 登錄 | 申請會員

本版積分規則

首頁|手機版|Chip123 科技應用創新平台 |新契機國際商機整合股份有限公司

GMT+8, 2024-6-17 04:04 AM , Processed in 0.154019 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表