<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Implementing 6 Inputs function on PLU module  in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Implementing-6-Inputs-function-on-PLU-module/m-p/985363#M38847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiang Jun Rong,&lt;/P&gt;&lt;P&gt;Thank you for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it mean that using the case statement with 6 inputs implies the use of filpflops? Because using the case statement with 5 inputs was accepted and didn't use flipflops, it only used LUTs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best.&lt;/P&gt;&lt;P&gt;Randa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Nov 2019 11:33:11 GMT</pubDate>
    <dc:creator>randa_zarrouk</dc:creator>
    <dc:date>2019-11-08T11:33:11Z</dc:date>
    <item>
      <title>Implementing 6 Inputs function on PLU module</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Implementing-6-Inputs-function-on-PLU-module/m-p/985360#M38844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to implement a function that depends on 6 Inputs and gives 8 Outputs making use of the PLU module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;everything works fine when it is about 5 inputs and 8 outputs, but when I add the 6th input, the PLU configuration tool don't accept to parse the Verilog code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Supposedly, you write the Verilog code and imported to the configuration tool,&amp;nbsp;which is going to optimize the design and then into C code. This will only be possible if the Verilog code is error free.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make sure that there is no problem with syntax, I made a test with a code which deploys 5 inputs and 8 outputs. It was accepted and turned into C code. In the next step, I only added the 6th Input. The &lt;EM&gt;optimize wizard&lt;/EM&gt; of the configuration tool didn't want to move to the next step.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that correlates with the fact that there are only 5 inputs for the one LUT which is the base component of the PLU module?&amp;nbsp;&lt;/P&gt;&lt;P&gt;But even-though, still there are 6 PLU_Inputs and 25 LUTs that can be used by the wizard to implement this function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea or explanation to the meaning behind that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;STRONG&gt;The Verilog code of the envisaged function (5 Inputs/8 Outputs):&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;module main(R, Q, P ,O, L,N,M,K,A,B,C,D,E);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;output K;&lt;BR /&gt;output M;&lt;BR /&gt;output N;&lt;BR /&gt;output L;&lt;BR /&gt;output O;&lt;BR /&gt;output P;&lt;BR /&gt;output Q;&lt;BR /&gt;output R;&lt;/P&gt;&lt;P&gt;input A;&lt;BR /&gt;input B;&lt;BR /&gt;input C;&lt;BR /&gt;input D;&lt;BR /&gt;input E;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;always @(E,D,C,B,A) //D, E, F&lt;/P&gt;&lt;P&gt;begin&lt;BR /&gt; case({E,D,C,B,A})&lt;BR /&gt; &lt;BR /&gt; 5'b11011 : begin &lt;BR /&gt; K = 1'b0 ;&lt;BR /&gt; M = 1'b0 ;&lt;BR /&gt; N = 1'b1 ;&lt;BR /&gt; L = 1'b1 ;&lt;BR /&gt; O = 1'b1 ;&lt;BR /&gt; P = 1'b1 ;&lt;BR /&gt; Q = 1'b1 ;&lt;BR /&gt; R = 1'b1 ;&lt;BR /&gt; end&lt;BR /&gt; 5'b10101 : begin &lt;BR /&gt; &lt;BR /&gt; K = 1'b1 ;&lt;BR /&gt; M = 1'b1 ;&lt;BR /&gt; N = 1'b1 ;&lt;BR /&gt; L = 1'b1 ;&lt;BR /&gt; O = 1'b1 ;&lt;BR /&gt; P = 1'b1 ;&lt;BR /&gt; Q = 1'b1 ;&lt;BR /&gt; R = 1'b1 ;&lt;BR /&gt; end&lt;BR /&gt; 5'b10000 : begin &lt;BR /&gt; &lt;BR /&gt; K = 1'b1 ;&lt;BR /&gt; M = 1'b0 ;&lt;BR /&gt; N = 1'b1 ;&lt;BR /&gt; L = 1'b1 ;&lt;BR /&gt; O = 1'b1 ;&lt;BR /&gt; P = 1'b1 ;&lt;BR /&gt; Q = 1'b1 ;&lt;BR /&gt; R = 1'b0 ;&lt;BR /&gt; end&lt;BR /&gt; 5'b11110 : begin &lt;BR /&gt; &lt;BR /&gt; K = 1'b0 ;&lt;BR /&gt; M = 1'b0 ;&lt;BR /&gt; N = 1'b1 ;&lt;BR /&gt; L = 1'b0 ;&lt;BR /&gt; O = 1'b1 ;&lt;BR /&gt; P = 1'b1 ;&lt;BR /&gt; Q = 1'b1 ;&lt;BR /&gt; R = 1'b1 ;&lt;BR /&gt; end&lt;BR /&gt; 5'b00001 : begin &lt;BR /&gt; &lt;BR /&gt; K = 1'b1 ;&lt;BR /&gt; M = 1'b1 ;&lt;BR /&gt; N = 1'b1 ;&lt;BR /&gt; L = 1'b1 ;&lt;BR /&gt; O = 1'b0 ;&lt;BR /&gt; P = 1'b1 ;&lt;BR /&gt; Q = 1'b1 ;&lt;BR /&gt; R = 1'b1 ;&lt;BR /&gt; end&lt;BR /&gt; 5'b01111 : begin &lt;BR /&gt; &lt;BR /&gt; K = 1'b1 ;&lt;BR /&gt; M = 1'b1 ;&lt;BR /&gt; N = 1'b1 ;&lt;BR /&gt; L = 1'b1 ;&lt;BR /&gt; O = 1'b1 ;&lt;BR /&gt; P = 1'b1 ;&lt;BR /&gt; Q = 1'b0 ;&lt;BR /&gt; R = 1'b1 ;&lt;BR /&gt; end &lt;BR /&gt; default : begin &lt;BR /&gt; &lt;BR /&gt; K = 1'b0 ;&lt;BR /&gt; M = 1'b0 ;&lt;BR /&gt; N = 1'b0 ;&lt;BR /&gt; L = 1'b0 ;&lt;BR /&gt; O = 1'b0 ;&lt;BR /&gt; P = 1'b0 ;&lt;BR /&gt; Q = 1'b0 ;&lt;BR /&gt; R = 1'b0 ;&lt;BR /&gt; end&lt;BR /&gt; endcase&lt;BR /&gt; end&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;endmodule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The corresponding C code to the above Verilog code of the envisaged function (5 Inputs/8 Outputs) generated by the PLU configuration tool :&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/* &lt;BR /&gt; * This file was generated by the PLU Config Tool.&lt;BR /&gt; * 6 Inputs 26 LUTs 4 flip flops and 8 outputs *&lt;/P&gt;&lt;P&gt;/* LUT4 (K) *&lt;BR /&gt;PLU-&amp;gt;LUT[4].INP[0] = 0x00000002; /* IN2 (C) *&lt;BR /&gt;PLU-&amp;gt;LUT[4].INP[1] = 0x00000001; /* IN1 (B) *&lt;BR /&gt;PLU-&amp;gt;LUT[4].INP[2] = 0x00000000; /* IN0 (A) *&lt;BR /&gt;PLU-&amp;gt;LUT[4].INP[3] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT[4].INP[4] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT_TRUTH[4] = 0xb1b1b1b1; /* K CUSTOM *&lt;/P&gt;&lt;P&gt;/* LUT5 (L) *&lt;BR /&gt;PLU-&amp;gt;LUT[5].INP[0] = 0x00000002; /* IN2 (C) *&lt;BR /&gt;PLU-&amp;gt;LUT[5].INP[1] = 0x00000001; /* IN1 (B) *&lt;BR /&gt;PLU-&amp;gt;LUT[5].INP[2] = 0x00000000; /* IN0 (A) *&lt;BR /&gt;PLU-&amp;gt;LUT[5].INP[3] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT[5].INP[4] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT_TRUTH[5] = 0xf1f1f1f1; /* L CUSTOM *&lt;/P&gt;&lt;P&gt;/* LUT6 (M) *&lt;BR /&gt;PLU-&amp;gt;LUT[6].INP[0] = 0x00000002; /* IN2 (C) *&lt;BR /&gt;PLU-&amp;gt;LUT[6].INP[1] = 0x00000001; /* IN1 (B) *&lt;BR /&gt;PLU-&amp;gt;LUT[6].INP[2] = 0x00000000; /* IN0 (A) *&lt;BR /&gt;PLU-&amp;gt;LUT[6].INP[3] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT[6].INP[4] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT_TRUTH[6] = 0xb0b0b0b0; /* M CUSTOM *&lt;/P&gt;&lt;P&gt;/* LUT7 (N) *&lt;BR /&gt;PLU-&amp;gt;LUT[7].INP[0] = 0x00000002; /* IN2 (C) *&lt;BR /&gt;PLU-&amp;gt;LUT[7].INP[1] = 0x00000001; /* IN1 (B) *&lt;BR /&gt;PLU-&amp;gt;LUT[7].INP[2] = 0x00000000; /* IN0 (A) *&lt;BR /&gt;PLU-&amp;gt;LUT[7].INP[3] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT[7].INP[4] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT_TRUTH[7] = 0xf9f9f9f9; /* N CUSTOM *&lt;/P&gt;&lt;P&gt;/* LUT8 (O) *&lt;BR /&gt;PLU-&amp;gt;LUT[8].INP[0] = 0x00000002; /* IN2 (C) *&lt;BR /&gt;PLU-&amp;gt;LUT[8].INP[1] = 0x00000001; /* IN1 (B) *&lt;BR /&gt;PLU-&amp;gt;LUT[8].INP[2] = 0x00000000; /* IN0 (A) *&lt;BR /&gt;PLU-&amp;gt;LUT[8].INP[3] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT[8].INP[4] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT_TRUTH[8] = 0xe9e9e9e9; /* O CUSTOM *&lt;/P&gt;&lt;P&gt;/* LUT9 (P) *&lt;BR /&gt;PLU-&amp;gt;LUT[9].INP[0] = 0x00000002; /* IN2 (C) *&lt;BR /&gt;PLU-&amp;gt;LUT[9].INP[1] = 0x00000001; /* IN1 (B) *&lt;BR /&gt;PLU-&amp;gt;LUT[9].INP[2] = 0x00000000; /* IN0 (A) *&lt;BR /&gt;PLU-&amp;gt;LUT[9].INP[3] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT[9].INP[4] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT_TRUTH[9] = 0xf9f9f9f9; /* P CUSTOM *&lt;/P&gt;&lt;P&gt;/* LUT10 (Q) *&lt;BR /&gt;PLU-&amp;gt;LUT[10].INP[0] = 0x00000002; /* IN2 (C) *&lt;BR /&gt;PLU-&amp;gt;LUT[10].INP[1] = 0x00000001; /* IN1 (B) *&lt;BR /&gt;PLU-&amp;gt;LUT[10].INP[2] = 0x00000000; /* IN0 (A) *&lt;BR /&gt;PLU-&amp;gt;LUT[10].INP[3] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT[10].INP[4] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT_TRUTH[10] = 0x79797979; /* Q CUSTOM *&lt;/P&gt;&lt;P&gt;/* LUT11 (R) *&lt;BR /&gt;PLU-&amp;gt;LUT[11].INP[0] = 0x00000002; /* IN2 (C) *&lt;BR /&gt;PLU-&amp;gt;LUT[11].INP[1] = 0x00000001; /* IN1 (B) *&lt;BR /&gt;PLU-&amp;gt;LUT[11].INP[2] = 0x00000000; /* IN0 (A) *&lt;BR /&gt;PLU-&amp;gt;LUT[11].INP[3] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT[11].INP[4] = 0x0000003F; /* default *&lt;BR /&gt;PLU-&amp;gt;LUT_TRUTH[11] = 0xf8f8f8f8; /* R CUSTOM *&lt;/P&gt;&lt;P&gt;PLU-&amp;gt;OUTPUT_MUX[0] = 0x00000004; /* LUT4 (K) -&amp;gt; K_PLU_OUT *&lt;BR /&gt;PLU-&amp;gt;OUTPUT_MUX[1] = 0x00000006; /* LUT6 (M) -&amp;gt; M_PLU_OUT *&lt;BR /&gt;PLU-&amp;gt;OUTPUT_MUX[2] = 0x00000007; /* LUT7 (N) -&amp;gt; N_PLU_OUT *&lt;BR /&gt;PLU-&amp;gt;OUTPUT_MUX[3] = 0x00000005; /* LUT5 (L) -&amp;gt; L_PLU_OUT *&lt;BR /&gt;PLU-&amp;gt;OUTPUT_MUX[4] = 0x00000008; /* LUT8 (O) -&amp;gt; O_PLU_OUT *&lt;BR /&gt;PLU-&amp;gt;OUTPUT_MUX[5] = 0x00000009; /* LUT9 (P) -&amp;gt; P_PLU_OUT *&lt;BR /&gt;PLU-&amp;gt;OUTPUT_MUX[6] = 0x0000000a; /* LUT10 (Q) -&amp;gt; Q_PLU_OUT *&lt;BR /&gt;PLU-&amp;gt;OUTPUT_MUX[7] = 0x0000000b; /* LUT11 (R) -&amp;gt; R_PLU_OUT */&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now , here is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Verilog code of the envisaged function (6 Inputs/8 Outputs):&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module main(R, Q, P ,O, L,N,M,K,A,B,C,D,E,F);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;output K;&lt;BR /&gt;output M;&lt;BR /&gt;output N;&lt;BR /&gt;output L;&lt;BR /&gt;output O;&lt;BR /&gt;output P;&lt;BR /&gt;output Q;&lt;BR /&gt;output R;&lt;/P&gt;&lt;P&gt;input A;&lt;BR /&gt;input B;&lt;BR /&gt;input C;&lt;BR /&gt;input D;&lt;BR /&gt;input E;&lt;BR /&gt;input F;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;always @(F,E,D,C,B,A) //D, E, F&lt;/P&gt;&lt;P&gt;begin&lt;BR /&gt; case({F,E,D,C,B,A})&lt;BR /&gt; &lt;BR /&gt; 6'b111011 : begin &lt;BR /&gt; K = 1'b0 ;&lt;BR /&gt; M = 1'b0 ;&lt;BR /&gt; N = 1'b1 ;&lt;BR /&gt; L = 1'b1 ;&lt;BR /&gt; O = 1'b1 ;&lt;BR /&gt; P = 1'b1 ;&lt;BR /&gt; Q = 1'b1 ;&lt;BR /&gt; R = 1'b1 ;&lt;BR /&gt; end&lt;BR /&gt; 6'b110101 : begin &lt;BR /&gt; &lt;BR /&gt; K = 1'b1 ;&lt;BR /&gt; M = 1'b1 ;&lt;BR /&gt; N = 1'b1 ;&lt;BR /&gt; L = 1'b1 ;&lt;BR /&gt; O = 1'b1 ;&lt;BR /&gt; P = 1'b1 ;&lt;BR /&gt; Q = 1'b1 ;&lt;BR /&gt; R = 1'b1 ;&lt;BR /&gt; end&lt;BR /&gt; 6'b110000 : begin &lt;BR /&gt; &lt;BR /&gt; K = 1'b1 ;&lt;BR /&gt; M = 1'b0 ;&lt;BR /&gt; N = 1'b1 ;&lt;BR /&gt; L = 1'b1 ;&lt;BR /&gt; O = 1'b1 ;&lt;BR /&gt; P = 1'b1 ;&lt;BR /&gt; Q = 1'b1 ;&lt;BR /&gt; R = 1'b0 ;&lt;BR /&gt; end&lt;BR /&gt; 6'b111110 : begin &lt;BR /&gt; &lt;BR /&gt; K = 1'b0 ;&lt;BR /&gt; M = 1'b0 ;&lt;BR /&gt; N = 1'b1 ;&lt;BR /&gt; L = 1'b0 ;&lt;BR /&gt; O = 1'b1 ;&lt;BR /&gt; P = 1'b1 ;&lt;BR /&gt; Q = 1'b1 ;&lt;BR /&gt; R = 1'b1 ;&lt;BR /&gt; end&lt;BR /&gt; 6'b100001 : begin &lt;BR /&gt; &lt;BR /&gt; K = 1'b1 ;&lt;BR /&gt; M = 1'b1 ;&lt;BR /&gt; N = 1'b1 ;&lt;BR /&gt; L = 1'b1 ;&lt;BR /&gt; O = 1'b0 ;&lt;BR /&gt; P = 1'b1 ;&lt;BR /&gt; Q = 1'b1 ;&lt;BR /&gt; R = 1'b1 ;&lt;BR /&gt; end&lt;BR /&gt; 5'b101111 : begin &lt;BR /&gt; &lt;BR /&gt; K = 1'b1 ;&lt;BR /&gt; M = 1'b1 ;&lt;BR /&gt; N = 1'b1 ;&lt;BR /&gt; L = 1'b1 ;&lt;BR /&gt; O = 1'b1 ;&lt;BR /&gt; P = 1'b1 ;&lt;BR /&gt; Q = 1'b0 ;&lt;BR /&gt; R = 1'b1 ;&lt;BR /&gt; end &lt;BR /&gt; default : begin &lt;BR /&gt; &lt;BR /&gt; K = 1'b0 ;&lt;BR /&gt; M = 1'b0 ;&lt;BR /&gt; N = 1'b0 ;&lt;BR /&gt; L = 1'b0 ;&lt;BR /&gt; O = 1'b0 ;&lt;BR /&gt; P = 1'b0 ;&lt;BR /&gt; Q = 1'b0 ;&lt;BR /&gt; R = 1'b0 ;&lt;BR /&gt; end&lt;BR /&gt; endcase&lt;BR /&gt; end&lt;BR /&gt;endmodule&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!#&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2019 10:41:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Implementing-6-Inputs-function-on-PLU-module/m-p/985360#M38844</guid>
      <dc:creator>randa_zarrouk</dc:creator>
      <dc:date>2019-10-30T10:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing 6 Inputs function on PLU module</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Implementing-6-Inputs-function-on-PLU-module/m-p/985361#M38845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Problem fixed when&amp;nbsp;I replaced the &lt;STRONG&gt;case&lt;/STRONG&gt; statement with the &lt;STRONG&gt;if&lt;/STRONG&gt; statement so it became:&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;for example:&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;   &lt;P&gt;if (A == 1 &amp;amp;&amp;amp; B==1 &amp;amp;&amp;amp; C==0 &amp;amp;&amp;amp; D==1 &amp;amp;&amp;amp; E==1 &amp;amp;&amp;amp; F==0)&lt;BR /&gt; begin &lt;BR /&gt; Y = 1'b1 ; // LSB if mapped as LUT0&lt;BR /&gt; K = 1'b1 ;&lt;BR /&gt; L = 1'b1 ;&lt;BR /&gt; M = 1'b1 ;&lt;BR /&gt; N = 1'b1 ;&lt;BR /&gt; O = 1'b1 ;&lt;BR /&gt; P = 1'b1 ;&lt;BR /&gt; Q = 1'b1 ; // MSB if mapped as LUT8&lt;BR /&gt; end&lt;/P&gt; &lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;instead of :&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;   &lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;case({F,E,D,C,B,A})&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;6'b111011 : begin&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;K = 1'b0 ;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;M = 1'b0 ;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;N = 1'b1 ;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;L = 1'b1 ;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;O = 1'b1 ;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;P = 1'b1 ;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;Q = 1'b1 ;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;R = 1'b1 ;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;end&lt;/SPAN&gt;&lt;/P&gt; &lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;So now my question is, &lt;STRONG&gt;why it is possible using the if statement but not possible using the case statement?&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 12:35:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Implementing-6-Inputs-function-on-PLU-module/m-p/985361#M38845</guid>
      <dc:creator>randa_zarrouk</dc:creator>
      <dc:date>2019-10-31T12:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing 6 Inputs function on PLU module</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Implementing-6-Inputs-function-on-PLU-module/m-p/985362#M38846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Randa,&lt;/P&gt;&lt;P&gt;As you know that the PLU is a very simple programmable module, it only has 4 flip-flops, so the compiler/synthetizer are also very simple, it does not support case instruction.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2019 07:47:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Implementing-6-Inputs-function-on-PLU-module/m-p/985362#M38846</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-11-08T07:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing 6 Inputs function on PLU module</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Implementing-6-Inputs-function-on-PLU-module/m-p/985363#M38847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiang Jun Rong,&lt;/P&gt;&lt;P&gt;Thank you for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it mean that using the case statement with 6 inputs implies the use of filpflops? Because using the case statement with 5 inputs was accepted and didn't use flipflops, it only used LUTs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best.&lt;/P&gt;&lt;P&gt;Randa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2019 11:33:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Implementing-6-Inputs-function-on-PLU-module/m-p/985363#M38847</guid>
      <dc:creator>randa_zarrouk</dc:creator>
      <dc:date>2019-11-08T11:33:11Z</dc:date>
    </item>
  </channel>
</rss>

