]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
moving some constants into vhdl package.
authorTobias Weber <toweber86@gmail.com>
Fri, 22 Jun 2018 08:10:07 +0000 (10:10 +0200)
committerTobias Weber <toweber86@gmail.com>
Fri, 22 Jun 2018 08:10:07 +0000 (10:10 +0200)
mupix/Mupix8/sources/MuPixUnpacker.vhd
mupix/Mupix8/sources/constants.vhd [new file with mode: 0644]

index cd4ccb7f4ee3a25fba57061ac64129a2bfa9f658..b628e516b2e80f78076f635495848525284ad97c 100644 (file)
@@ -43,9 +43,6 @@ architecture RTL of MupixUnpacker is
   signal hit_reg        : std_logic;
   signal link_flag_reg  : std_logic;
 
-  constant k28_5 : std_logic_vector(7 downto 0) := x"bc";
-  constant k28_0 : std_logic_vector(7 downto 0) := x"1c";
-
 begin
 
 
diff --git a/mupix/Mupix8/sources/constants.vhd b/mupix/Mupix8/sources/constants.vhd
new file mode 100644 (file)
index 0000000..bead1ca
--- /dev/null
@@ -0,0 +1,12 @@
+library IEEE;
+use IEEE.std_logic_1164.all;
+use IEEE.numeric_std.all;
+
+package Constants is
+
+  constant c_mupixhitsize : integer := 40; -- Link(8) & Row(8) & Col(8) & Charge(7) & TS(9) in hit mode
+                                           -- binary counter(24) & link(4) & x"3" & gray counter
+  constant k28_5 : std_logic_vector(7 downto 0) := x"bc";
+  constant k28_0 : std_logic_vector(7 downto 0) := x"1c";
+
+end package Constants;