|
不知道在這裡問對不對,請問一下,下面這個 書上的 "hello verilog" 例子在modelsim環境下怎麼下command才能link 並且可以產生結果呢" f4 m) S6 `6 Y' _ l; Y
+ M( U* [5 z1 g, {. j* J; I
看usermannual 的語法說明不太了解 不知道哪位大大可以告知一下呢 先謝謝各位了
* i8 W" o$ y: Q9 \3 N
8 K$ C# ?4 i) f* C* N# ~************************************************************
$ l9 F6 u: T& {#include "veriuser.h" /*include the file provided in the release dir */. j0 j6 W/ Q1 \, X; X
- J2 [( \/ p* S8 D: Xint hello_verilog()$ Y5 |+ j5 K" [$ T+ b5 ]/ `" ]
{
) t4 X3 m! W1 b: x; T) U# [ io_printf("Hello Verilog World\n";
$ P; N, s! A6 s" G( h}
0 t, [/ V; [3 o( c8 o: l. {*************************************************************% M: D* P2 f2 |- R) l2 g" m$ \ l
0 {+ M2 e2 `6 \
$ [7 J7 o; o) f% Z4 K) h
3 W; G) @+ ^3 F7 z4 o. c7 j6 m7 Q! f4 c* `5 H
1 {+ U; J' J# y5 X: `* y m4 r# |
***************************************************************) d( {* i2 T E$ C) U8 l" G; H
module hello_top;% p( p) ~" P7 e, f
4 n: I: e. N. C8 c O
initial9 G6 ]' ?6 k! e
$hello_verilog; //Invoke the user defined task $hello_verilog
2 U; h7 ^; j4 a: A' Z
, [1 p, `" a' k. Dendmodule
c. i% X. p4 \! D0 O. H% C***************************************************************** |
|