From: Jan Michel Date: Fri, 7 Aug 2015 10:56:40 +0000 (+0200) Subject: fixing select outputs for pulser X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=bfbd1223e5312c30394b36082dd2a347fd47f96a;p=trb3sc.git fixing select outputs for pulser --- diff --git a/pulser/code/pulser.vhd b/pulser/code/pulser.vhd index d111623..1a6b3cb 100644 --- a/pulser/code/pulser.vhd +++ b/pulser/code/pulser.vhd @@ -251,10 +251,15 @@ THE_RIGHT_DDR : entity work.ddr_10 ------------------------------------------------- -- Control Lines ------------------------------------------------- - SEL1 <= ana1_in_select; - SEL2 <= ana2_in_select; - SELO1 <= ana1_out_select; - SELO2 <= ana2_out_select; +gen_c_shape : for i in 0 to 3 generate + SEL1(i) <= '0' when ana1_in_select(i) = '1' else 'Z'; + SEL2(i) <= '0' when ana2_in_select(i) = '1' else 'Z'; +end generate; + +gen_c_outputs : for i in 0 to 1 generate + SELO1(i) <= '0' when ana1_out_select(i) = '1' else 'Z'; + SELO2(i) <= '0' when ana2_out_select(i) = '1' else 'Z'; +end generate; -------------------------------------------------