2 <block_impl ref_name="checker.xml" ref_md5="">
4 <author lastname="" mail="" firstname=""/>
5 <date creation="2018-01-10"/>
6 <related_files list=""/>
7 <description>frdfgdr</description>
12 <package name="std_logic_1164" use="all"/>
13 <package name="numeric_std" use="all"/>
19 check_process : process (@{clk}, @{reset})
21 if @{reset} = '1' then
23 @{check_out} <= '0';
24 @{data_out} <= (others => '0');
25 @{data_out_enb} <= '0';
26 @{check_out_enb} <= '0';
28 elsif rising_edge(@{clk}) then
30 @{check_out} <= '0';
31 @{data_out} <= (others => '0');
32 @{data_out_enb} <= '0';
33 @{check_out_enb} <= '0';
35 if @{data_in_enb} = '1' then
37 @{data_out} <= @{data_in};
38 @{data_out_enb} <= '1';
39 @{check_out_enb} <= '1';
41 if check_type = 1 then
42 if unsigned(@{data_in}) <= inf_value then
43 @{check_out} <= '1';
45 elsif check_type = 2 then
46 if unsigned(@{data_in}) >= inf_value then
47 @{check_out} <= '1';
49 elsif check_type = 3 then
50 if unsigned(@{data_in}) >= inf_value and unsigned(@{data_in}) <= sup_value then
51 @{check_out} <= '1';
57 end process check_process;
64 <input pattern="1" name="data_in_enb"/>
66 <production counter="1">
67 <output pattern="01" name="data_out_enb"/>
68 <output pattern="01" name="check_out_enb"/>