aboutsummaryrefslogtreecommitdiffstats
path: root/3rdparty/pybind11/tests/test_modules.cpp
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-10-17 19:02:25 +0100
committerGitHub <noreply@github.com>2021-10-17 19:02:25 +0100
commit3b99db294f95d7da8160efd6d67ebfd50ca9ef0f (patch)
tree851775972a355cb0fbddc23b06b637d7a590771d /3rdparty/pybind11/tests/test_modules.cpp
parent6bd1ab41b77e3d038398ee6f2c5ba0dc46ef01c2 (diff)
parentd90de7f696bb9bdcaa5709e7626ec597767c0034 (diff)
downloadnextpnr-3b99db294f95d7da8160efd6d67ebfd50ca9ef0f.tar.gz
nextpnr-3b99db294f95d7da8160efd6d67ebfd50ca9ef0f.tar.bz2
nextpnr-3b99db294f95d7da8160efd6d67ebfd50ca9ef0f.zip
Merge pull request #848 from galibert/master
mistral: Support the new routes-to-bin intermediate tool generation
Diffstat (limited to '3rdparty/pybind11/tests/test_modules.cpp')
0 files changed, 0 insertions, 0 deletions
ht .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
entity tb_ent is
end tb_ent;

library ieee;
use ieee.std_logic_1164.all;

architecture behav of tb_ent is
  signal s : std_ulogic;
  signal din : std_ulogic_vector(15 downto 0);
  signal dout : std_ulogic;
begin
  dut: entity work.ent
    port map (s, din, dout);

  process
  begin
    s <= '1';
    din <= x"00_00";
    wait for 1 ns;
    assert dout = '0' severity failure;

    din <= x"04_00";
    wait for 1 ns;
    assert dout = '1' severity failure;

    din <= x"10_40";
    wait for 1 ns;
    assert dout = '0' severity failure;

    din <= x"80_01";
    wait for 1 ns;
    assert dout = '0' severity failure;

    din <= x"80_00";
    wait for 1 ns;
    assert dout = '1' severity failure;

    s <= '0';
    din <= x"80_00";
    wait for 1 ns;
    assert dout = '0' severity failure;

    wait;
  end process;
end behav;