-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from cms-l1-globaltrigger/dev_v1.27.x
dev_v1.27.x merge
- Loading branch information
Showing
19 changed files
with
802 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
-- Description: | ||
-- Trigger on a given object number and threshold (equal for all objects) | ||
-- "... like 6 jets with pT > 15 GeV or 8-10 jets with no pT requirement" - mail from Efe Ygitbasi (2024-05-08) | ||
|
||
-- Version history: | ||
-- HB 2024-05-08: first design. | ||
|
||
library ieee; | ||
use ieee.std_logic_1164.all; | ||
use ieee.std_logic_unsigned.all; | ||
|
||
use work.gtl_pkg.all; | ||
|
||
entity calo_comb_multi_condition is | ||
generic ( | ||
nr_obj : natural := 6; | ||
pt_width : natural := JET_ET_BITS; | ||
pt_threshold: std_logic_vector; | ||
pt_ge_mode: boolean := true | ||
); | ||
port( | ||
clk : in std_logic; | ||
data_i: in calo_objects_array(0 to MAX_CALO_OBJECTS-1); | ||
condition_o : out std_logic | ||
); | ||
end calo_comb_multi_condition; | ||
|
||
architecture rtl of calo_comb_multi_condition is | ||
|
||
signal pt : std_logic_vector(pt_width-1 downto 0) := (others => '0'); | ||
signal comp : std_logic; | ||
signal comp_v, comp_v_o : std_logic_vector(0 downto 0); | ||
|
||
begin | ||
|
||
pt <= data_i(nr_obj-1)(pt_width-1 downto 0); | ||
|
||
comp <= '1' when pt >= pt_threshold and pt_ge_mode else | ||
'1' when pt = pt_threshold and not pt_ge_mode else '0'; | ||
|
||
comp_v(0) <= comp; | ||
|
||
out_pipe_i: entity work.delay_pipeline | ||
generic map( | ||
DATA_WIDTH => 1, | ||
STAGES => COMMON_COND_STAGES | ||
) | ||
port map( | ||
clk, comp_v, comp_v_o | ||
); | ||
|
||
condition_o <= comp_v_o(0); | ||
|
||
end architecture rtl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.