Home Forums MagCAD Support HDL Models unable to get the output waveform Reply To: unable to get the output waveform

#1292
UmbertoUmberto
Moderator

Hi,
I tried your layout and everything works fine.
Please find below the TB, with a correct stimuli process, and attached a snapshot of the simulation.
Remember that you have to ADD YOUR STIMULI in the Testbench template.

library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
use work.components_pnml.all;
use work.definitions_pnml.all;

entity tb_pNML_custom_XORNEW is
end tb_pNML_custom_XORNEW;

architecture Behavioural of tb_pNML_custom_XORNEW is

signal CLK : std_logic;
signal O :std_logic;
signal O_param : param_data := (others => 0.0);
signal X :std_logic;
signal X_param : param_data := (others => 0.0);
signal Y :std_logic;
signal Y_param : param_data := (others => 0.0);

component pNML_custom_XORNEW is
port(
O: out std_logic;
O_param: out param_data := (others => 0.0);
X: in std_logic;
X_param: in param_data := (others => 0.0);
Y: in std_logic;
Y_param: in param_data := (others => 0.0);
CLK: in std_logic);
end component;

begin

DUT : pNML_custom_XORNEW port map(O => O, O_param => O_param,
X => X, X_param => X_param,
Y => Y, Y_param => Y_param,
CLK => CLK);

clock_proc:process
begin
CLK<='0';
wait for t_clock * 1 sec;
CLK<='1';
wait for t_clock * 1 sec;
end process clock_proc;

input_proc: process
begin
--insert your input stimuli here
x<='0';
y<='0';
wait for 5 us;
x<='0';
y<='1';
wait for 5 us;
x<='1';
y<='1';
wait for 5 us;
x<='1';
y<='0';
wait for 50 us;
end process input_proc;

end Behavioural;

Regards,
Umberto

Attachments:
https://www.asmpf.org.br/portfolio
https://www.bng-tech.com/en/
https://viewlike.us
https://www.damlasulama.com/fra/
https://hotel.kirpisoft.com.tr/
https://en.metalescamacho.com/
https://www.broadcastbuyer.tv/
https://greenhillsacademy.org/
https://aicspht.org.tw/contact/
https://dijitalnesilakademisi.com/hakkimizda.php
https://pharmaspecific.com/en/
https://gnimaging.com.au/review/
https://chicago43rd.org/
https://kastamonuelektrik.com/
https://www.damlasulama.com/hakkimizda/
https://cherrylodgecancercare.org/
https://www.jpgida.com/
https://angad.vic.edu.au/contact/
https://kirpisoft.com.tr/hakkimizda
https://sunriseearlylearningcenter.com/contact-us/
https://iapwe.org/contact/
https://www.mistralsolutions.com/about-us/
https://www.bci.maximawebsites.com/
https://isc.lviv.ua/en/
https://culturecongress.org.ua/congress-2021/
https://isc.lviv.ua/about/
https://www.asmpf.org.br/
https://oficialdocnet.com.br/contato/