diff options
author | umarcor <unai.martinezcorral@ehu.eus> | 2021-04-23 02:37:19 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-04-24 01:59:30 +0200 |
commit | 76404f71df0f7c1037b190a3cf23bad84bc4c84b (patch) | |
tree | abf64faae59ddbb59d2dcbe199d99486889a59ed /testsuite/gna/issue668/wb_demux_tb.vhdl | |
parent | 026006aec2f37328edc8540472920ef0fbc591b9 (diff) | |
download | ghdl-76404f71df0f7c1037b190a3cf23bad84bc4c84b.tar.gz ghdl-76404f71df0f7c1037b190a3cf23bad84bc4c84b.tar.bz2 ghdl-76404f71df0f7c1037b190a3cf23bad84bc4c84b.zip |
testsuite/gna/issue668: use ghw_diff (#1740)
Diffstat (limited to 'testsuite/gna/issue668/wb_demux_tb.vhdl')
-rw-r--r-- | testsuite/gna/issue668/wb_demux_tb.vhdl | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/testsuite/gna/issue668/wb_demux_tb.vhdl b/testsuite/gna/issue668/wb_demux_tb.vhdl new file mode 100644 index 000000000..768038201 --- /dev/null +++ b/testsuite/gna/issue668/wb_demux_tb.vhdl @@ -0,0 +1,54 @@ +library ieee; +use ieee.std_logic_1164.all; + +package wishbone_pkg is +--./wb_demux_tb:internal error: wave.create_type + type t_wishbone_master_out is record + dat : std_logic_vector; + end record; + subtype t_wishbone_slave_in is t_wishbone_master_out; +end wishbone_pkg; + +library IEEE; +use IEEE.STD_LOGIC_1164.ALL; + +library work; +use work.wishbone_pkg.all; + +entity wb_demux is + Port ( + wbs_i : in t_wishbone_slave_in + ); +end wb_demux; +architecture full_regs of wb_demux is +begin +end full_regs; + +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +library work; +use work.wishbone_pkg.all; + +entity wb_demux_tb is +end entity; +architecture bench of wb_demux_tb is + signal wbs_i : t_wishbone_slave_in( + dat(32-1 downto 0) + ); +begin + stimulus : process + begin + wbs_i.dat <= x"deadbeef"; + wait for 100 ns; + report "pass" severity note; + wait; + end process; + + dut : entity work.wb_demux + port map ( + wbs_i => wbs_i + ); +end architecture; + |