forked from tanchou/Verilog
Update testbench and simulation scripts to use a unified output file name for GTKWave
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
@echo off
|
||||
echo === Lancement de GTKWave ===
|
||||
gtkwave runs/uart_tx_fifo.vcd
|
||||
gtkwave runs/sim.vcd
|
||||
|
@@ -6,7 +6,7 @@ setlocal enabledelayedexpansion
|
||||
set OUT=runs/sim.vvp
|
||||
|
||||
:: Top-level testbench module
|
||||
set TOP=tb_uart_tx_fifo
|
||||
set TOP=tb_uart_rx_fifo
|
||||
|
||||
:: Répertoires contenant des fichiers .v
|
||||
set DIRS=src/verilog tests/verilog IP/verilog
|
||||
|
@@ -45,7 +45,7 @@ module tb_uart_fifo;
|
||||
);
|
||||
|
||||
initial begin
|
||||
$dumpfile("runs/uart_fifo.vcd");
|
||||
$dumpfile("runs/sim.vcd");
|
||||
$dumpvars(0, tb_uart_fifo);
|
||||
|
||||
$display("======== Start UART LOOPBACK test =========");
|
||||
|
@@ -42,7 +42,7 @@ module tb_uart_rx_fifo;
|
||||
always #(CLK_PERIOD_NS/2) clk = ~clk;
|
||||
|
||||
initial begin
|
||||
$dumpfile("runs/uart_rx_fifo.vcd");
|
||||
$dumpfile("runs/sim.vcd");
|
||||
$dumpvars(0, tb_uart_rx_fifo);
|
||||
$display("======== Start UART RX FIFO test =========");
|
||||
#100;
|
||||
@@ -69,7 +69,7 @@ module tb_uart_rx_fifo;
|
||||
|
||||
data_in = 8'd101; // Data to send
|
||||
wait(tx_data_ready); // Wait for the transmitter to be ready
|
||||
#1; // Small delay to ensure the data is latched
|
||||
|
||||
|
||||
tx_data_valid = 1'b1; // Indicate that the data is valid
|
||||
|
||||
|
@@ -39,7 +39,7 @@ module tb_uart_tx_fifo;
|
||||
);
|
||||
|
||||
initial begin
|
||||
$dumpfile("runs/uart_tx_fifo.vcd");
|
||||
$dumpfile("runs/sim.vcd");
|
||||
$dumpvars(0, tb_uart_tx_fifo);
|
||||
|
||||
$display("======== Start UART TX FIFO test =========");
|
||||
|
Reference in New Issue
Block a user