... | ... | @@ -49,16 +49,16 @@ module cpu_tb; |
|
|
|
|
|
parameter CYCLE = 100;
|
|
|
|
|
|
always #(CYCLE/2) sysclk; = ~sysclk;;
|
|
|
always #(CYCLE/2) sysclk = ~sysclk;
|
|
|
|
|
|
cpu cpu0(
|
|
|
.sysclk;(sysclk;),
|
|
|
.sysclk(sysclk),
|
|
|
.cpu_resetn(cpu_resetn),
|
|
|
.uart_tx(uart_tx)
|
|
|
);
|
|
|
|
|
|
initial begin
|
|
|
#10 sysclk; = 1'd0;
|
|
|
#10 sysclk = 1'd0;
|
|
|
cpu_resetn = 1'd0;
|
|
|
#(CYCLE) cpu_resetn = 1'd1;
|
|
|
#(プログラムの実行サイクル数以上の数字) $finish;
|
... | ... | |