|
延續 之前的問題喔!!
4 h5 J$ _" h. L! I我有去借書回來看,也按照其步驟下去跑,) ^4 M; e: k, c1 ]
但不知道是不是我的inout的POST設定錯誤,9 s, c" m2 {( y9 S( g7 M+ l
還是程式寫錯,請好心的大大幫忙解決一下。$ ^* H, _, ?7 W7 [; q
--------------------------------------------------------
- l( J4 Z) ?( r先附上一小段程式,比較有可能錯的地方,
2 m7 @9 C1 x- x! Z在最下面會放上兩個程式,
. X) _- G; e1 ^/ z; {test1.v(top-level ) , lcm.v4 l! ?# @8 q4 Q, `* d
--------------------------------------------------------
. ^, j- @3 i% ~) x1 h g; Z0 {, n9 N) r+ m0 b1 U, e: U+ L
; H1 Z! ?3 x; p0 M. l
程式主程式段:
3 o$ D$ w. e/ ?/ ]' k! Q------------------------------------
/ E3 w( y' z3 A) ^2 `' o3 @
" w+ `9 N0 N$ Zmodule test1(clk,enclm,inaddress,rs,rw,enable,data,led1,led2,state);: t+ A f- r3 y0 R9 ?/ e
input clk,enclm;
% A- v. c' V9 R2 S5 J, b( w; J$ z' Koutput inaddress;: }% w- V) D; H8 U/ Z) ]1 Z% W
output rs,rw,enable;
- p; E) Q1 d: l0 foutput [7:0] led1,led2;
7 U/ d- B8 J. P- _' D) z' A! Qinout [7:0] data; ) U. \; E6 D+ ?0 |. H1 `
output [4:0] state;" l$ f* G# V2 }+ r; [8 f% E
3 n- j6 S+ x# l: k
lcm l1(clk,enclm,inaddress,rs,rw,enable,data,state);
* ?+ O# i, h& Z+ M, S2 V
( s8 F, u* A! c% z$ r2 `5 m5 r副程式開頭
8 O! V+ h3 C% K! W1 ]2 h: w D----------------------------------
" `: }' R3 Y3 H( a- V8 g0 Omodule lcm(clk,enclm,inaddress,rs,rw,enable,data,state);
4 Z; j# \8 Q9 N. P3 N: z( P3 a4 }5 ?/ l) ?6 S+ \
input clk,enclm;9 W/ ?% @% C# d5 Z' u3 a; f
output reg inaddress;) Y; M- `# O1 O/ k
output reg rs,rw,enable;
! E: v6 L. T2 L/ L0 I; N6 ^( K: Rinout [7:0]data;
, ^# F2 l& _) @, Q' B/ xoutput [4:0] state;
5 ^; q! z* r: Z' j+ l* ~% Eassign data=rw?datar:dataw; ]1 F. z9 D9 h
-----------------------------------
. s" K) E, W- l. |有出現幾個 Warning 我不知道他的意思是什麼....2 ]& Q3 c2 R7 P# }4 N" P. L
我一直寫不出來,不知道是不是跟這個有關
. B, O8 F$ J# _, b1 T {$ O; P1 t6 v, F5 K5 `
Warning: TRI or OPNDRN buffers permanently enabled, ^" l4 g/ ]/ g& z K4 f
* ^3 n0 D! l4 r! V% F/ V5 Y
Warning: Performance of this circuit may degrade because the Fitter Delay Information is not loaded.' D, D) c2 z9 U7 k
2 t( Z! Z7 p- }# E" |+ s
-----------------------------------
! H* q6 C+ \2 ]* D6 O3 b請好心的大大幫忙解答一下
: e9 ^# i3 R" d( ^4 d7 Y
- i0 L2 Y# m9 z0 s, E! R* c9 C$ q9 J- n# p' \+ _/ R
PS:很怕只是以回復文章問問題,沒有人要看,可是又不想開新文章....; G' e( U' B" P1 g, v
0 Z& A& `0 w: p2 }- M3 m/ P0 |
5 L ]& \ [& H* Y" @! V
- }2 C+ e3 l1 e* F: U6 C* i$ U* e
|
本帖子中包含更多資源
您需要 登錄 才可以下載或查看,沒有帳號?申請會員
x
|