OpenCores
URL https://opencores.org/ocsvn/open_hitter/open_hitter/trunk

Subversion Repositories open_hitter

[/] [open_hitter/] [trunk/] [sim/] [rtl_sim/] [src/] [search_control_sim.vhd] - Diff between revs 21 and 23

Show entire file | Details | Blame | View Log

Rev 21 Rev 23
Line 108... Line 108...
        -- control
        -- control
           signal order_px_valid_o: std_logic;
           signal order_px_valid_o: std_logic;
begin
begin
    --  Component instantiation.
    --  Component instantiation.
        search_control_0: search_control
        search_control_0: search_control
           generic map ( searchitems => 4 )   -- for test case when full at 4 orders
    --       generic map ( searchitems => 4 )   -- for test case when full at 4 orders
 
           generic map ( searchitems => 200 )   -- a bit bigger
           port map (
           port map (
              RX_CLK => RX_CLK,
              RX_CLK => RX_CLK,
           -- control flag(s) on the incoming bus
           -- control flag(s) on the incoming bus
              search_px_valid_i => search_px_valid_i,
              search_px_valid_i => search_px_valid_i,
           -- pxdata: in price_packet
           -- pxdata: in price_packet
Line 255... Line 256...
                 -- got a return .. check it
                 -- got a return .. check it
                 if order_px_valid_o = '1' then
                 if order_px_valid_o = '1' then
 
 
--                    result_one <= '1';
--                    result_one <= '1';
 
 
                    if i = 1 then
                    if i = 4 then
                       if order_px_type_o = output_patterns(i).order_px_type_o then
                       if order_px_type_o = output_patterns(i).order_px_type_o then
                          result_one <= '1';
                          result_one <= '1';
                       end if;
                       end if;
                    end if;
                    end if;
 
 
                    if i = 2 then
                    if i = 8 then
                       if order_px_type_o = output_patterns(i).order_px_type_o then
                       if order_px_type_o = output_patterns(i).order_px_type_o then
                          result_two <= '1';
                          result_two <= '1';
                       end if;
                       end if;
                    end if;
                    end if;
 
 
                    if i = 3 then
                    if i = 11 then
                       if order_px_type_o = output_patterns(i).order_px_type_o then
                       if order_px_type_o = output_patterns(i).order_px_type_o then
                          result_all_ok <= '1';
                          result_all_ok <= '1';
                       end if;
                       end if;
                    end if;
                    end if;
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.