NET LOC = “SW<2> “p26”; NET LOC = “SW<3> “p33”; NET LOC = “SW<4> “p34”; NET LOC = “SW<5> “p35”; NET LOC = “SW<6> “p36”; NET LOC = “Sw<7> “p37”; NET LOC = “LED<0> “p143”; NET LOC = “LED<1> “p140”; NET LOC = “LED<2> “p139”; NET LOC = “LED<3> “p138”; NET LOC = “LED<5> “p133”; NET LOC = “LED<6> “p132”; NET LOC = “LED<7> “p131”; NET LOC = “LED<8> “p130”; ENCODER An encoder has a number of input lines, only one of which is activated at a given time, and produces an N-bit output code, depending on which input is activated. An encoder (8-line-to-3-line encoder) performs the opposite function: it accepts eight input lines and produces a three-bit output code corresponding to the activated input. Figure 9-13 shows the logic circuit and the truth table for an octal-to-binary encoder with active-LOW inputs.
NET “SW<2> LOC = “p26”; NET “SW<3> LOC = “p33”; NET “SW<4> LOC = “p34”; NET “SW<5> LOC = “p35”; NET “SW<6> LOC = “p36”; NET “Sw<7> LOC = “p37”; NET “LED<0> LOC = “p143”; NET “LED<1> LOC = “p140”; NET “LED<2> LOC = “p139”; NET “LED<3> LOC = “p138”; NET “LED<5> LOC = “p133”; NET “LED<6> LOC = “p132”; NET “LED<7> LOC = “p131”; NET “LED<8> LOC = “p130”; ENCODER An encoder has a number of input lines, only one of which is activated at a given time, and produces an N-bit output code, depending on which input is activated. An encoder (8-line-to-3-line encoder) performs the opposite function: it accepts eight input lines and produces a three-bit output code corresponding to the activated input. Figure 9-13 shows the logic circuit and the truth table for an octal-to-binary encoder with active-LOW inputs.
Assignment_VHDL.docx