Home Forums MagCAD Support HDL Models Error in VHDL Simulation using Xilinx ISE Reply To: Error in VHDL Simulation using Xilinx ISE

#1260
Bandan BhoiBandan Bhoi
Participant

sir,
I have generated VHDL code for the two input XOR gate. Below is the test bench code of the xor gate. I have also attached the figure of waveform.It is showing Unknown value U for clk and output O.

test bench file-


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<='1';
  wait for t_clock * 1 sec;
  CLK<='0';
  wait for t_clock * 1 sec;
end process clock_proc; 
  clk <= not clk after 10 ns;
input_proc: process
begin
 --insert your input stimuli here 

X<='0';
wait for t_clock * 1 sec;
Y<='1';
wait for t_clock * 1 sec;
end process input_proc;

end Behavioural;
  • This reply was modified 8 years, 2 months ago by FabrizioFabrizio. Reason: please use the code tag when posting vhdl code
Attachments:
https://www.sswfoundation.com/contact.php
https://www.opstechmedia.com/contact.php
https://multigestionasesores.com/contacts/
https://turiimar.com/vuelos
https://bulletnutrition.in/contact/
https://dijitalnesilakademisi.com/blog.php
https://dentcases.com/faq/
https://www.eldernunes.com.br/politica-de-privacidade/
https://topupburgers.com/contact-us/
https://realestatemallindia.com/about
https://mateuscarlini.com.br/faq/
https://amazonoffice.arq.br/
https://angrezimitra.com/shop/
https://www.drpratap.com/services/
https://petzaiastore.com.br/contact-us/
https://www.amconstrotech.com/about-us.php
https://drsonamsdentalstudio.com/blog/
https://trsurfboards.com.br/contact/
https://www.siriusrealestateturkey.com/hakkimizda/
https://realestatemallindia.com/about
https://nisaprefabrik.com/iletisim/
https://www.buturac-gradnja.hr/usluge/
https://techilan.com/faq
https://beautyblessed.ca/contact-us/
https://sridashrathraoguruji.com/about.php
https://incredibleevents.com/game-shows/
https://urdu.alilmunnafayfoundation.com/
https://lifestyle.wowwaves.com/category/beauty/
https://vumacbd.com/about-us/
https://bibart.in/contact-us/
https://www.glg.com.ge/aboutus.html