Beruflich Dokumente
Kultur Dokumente
Program Utama
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity sync_reg_4bit is
Port(
D : in std_logic_vector(3 downto 0);
Q : out std_logic_vector(3 downto 0);
load,reset,clk : in std_logic
);
end sync_reg_4bit;
TestBench
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity sync_reg_4bit_tb is
end sync_reg_4bit_tb;
[2019-05-22 13:18:45 EDT] vlib work && vcom '-2008' '-o' design.vhd testbench.vhd &&
vsim -c -do "vsim testbench lab5; vcd file dump.vcd; vcd add -r sim:/testbench/*vcd
add -r sim:/lab5/*; run -all; exit"
VSIMSA: Configuration file changed: `/home/runner/library.cfg'
ALIB: Library `work' attached.
work = /home/runner/work/work.lib
Aldec, Inc. VHDL Compiler, build 2014.06.88
VLM Initialized with path: "/home/runner/library.cfg".
DAGGEN WARNING DAGGEN_0523: "The source is compiled without the -dbg switch. Line
breakpoints and assertion debug will not be available."
COMP96 File: design.vhd
COMP96 Compile Entity "sync_reg_4bit"
COMP96 Compile Architecture "Behavioral" of Entity "sync_reg_4bit"
COMP96 File: testbench.vhd
COMP96 Compile Entity "sync_reg_4bit_tb"
COMP96 Compile Architecture "Behavioral" of Entity "sync_reg_4bit_tb"
COMP96 Top-level unit(s) detected:
COMP96 Entity => sync_reg_4bit_tb
COMP96 Compile success 0 Errors 0 Warnings Analysis time : 30.0 [ms]
# Aldec, Inc. Riviera-PRO version 2014.06.88.5387 built for Linux64 on June 25, 2014.
# HDL, SystemC, and Assertions simulator, debugger, and design environment.
# (c) 1999-2014 Aldec, Inc. All rights reserved.
vsim testbench lab5;
# VSIM: Error: Unknown library unit 'testbench' specified.
# VSIM: Error: Unknown library unit 'lab5' specified.
# VSIM: Error: Simulation initialization failed.
Finding VCD file...
No *.vcd file found. EPWave will not open. Did you use '$dumpfile("dump.vcd");
$dumpvars;'?
Done