Commit c26b4635 authored by Javinator9889's avatar Javinator9889 🎼

Delete tb_stepperMotor.vhd

parent 28c88df5
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
entity tb_stepperMotor is
end tb_stepperMotor;
architecture behavior of tb_stepperMotor IS
-- Component Declaration for the Unit Under Test (UUT)
component stepperMotor
port (
clk, dir: in std_logic;
clockOut, dirOut: out std_logic
);
end component;
--Inputs
signal clk : std_logic := '0';
signal dir : std_logic := '0';
--Outputs
signal clockOut : std_logic;
signal dirOut : std_logic;
-- Clock period definitions
constant clkPeriod : time := 10 ns; -- If the clk operates at 100 MHz, its clock cycle is 0.000 000 01 second = 10 ns.
begin
-- Instantiate the Unit Under Test (UUT)
uut: stepperMotor port map (
clk => clk,
dir => dir,
clockOut => clockOut,
dirOut => dirOut
);
-- Clock process definitions
clk_process : process
begin
clk <= '0';
wait for clkPeriod/2;
clk <= '1';
wait for clkPeriod/2;
end process;
-- Stimulus dir process
stim_proc: process
begin
wait for 100 ns;
dir <= '1';
wait for 100 ns;
dir <= '0';
wait;
end process;
end;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment