library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity mux8X1 is
Port ( en8 : in STD_LOGIC;
s3 : in STD_LOGIC_VECTOR (2 downto 0);
i : in STD_LOGIC_VECTOR (7 downto 0);
y8 : out STD_LOGIC;
y8l : out STD_LOGIC);
end mux8X1;
architecture Behavioral of mux8X1 is
begin
process(en8,s3,i)
begin
if(en8='0') then y8<='0';y8l<='1';
else
case s3 is
when "000" =>y8<=i(0);y8l<=not i(0);
when "001" =>y8<=i(1);y8l<=not i(1);
when "010" =>y8<=i(2);y8l<=not i(2);
when "011" =>y8<=i(3);y8l<=not i(3);
when "100" =>y8<=i(4);y8l<=not i(4);
when "101" =>y8<=i(5);y8l<=not i(5);
when "110" =>y8<=i(6);y8l<=not i(6);
when "111" =>y8<='i(7);y8l<=not i(7);
when others=>' null';
end case;
end if;
end process;
end Behavioral;
using 8:1 mux....
You don't need two 4-to-1 multiplexers. You only need one 4-to-1 multiplexer, and something that functions as a 2-to-1, like a single 2-input OR gate with one input grounded.
To build a 64 to 1 multiplexer using cascaded 8 to 1 multiplexer, use nine 8 to 1's. Connect the first 8 to each of the 64 inputs, then connect the ninth to the outputs of the first eight. Connect the three address lines of the eight together to form 3 of the address lines. Connect the three address lines of the ninth to form the other three, for a total of 6 address lines selecting 1 of 64 inputs.This is a lot of logic. Fan-in and fan-out may be considerations. If you are trying to scan 64 switches, there may be a better way using an 8-bit output connected to a switch matrix (with diodes if you need more than one at a time close-able) and then connected to an 8-bit input. Even better, consider the 8279 keyboard/display controller.
karthika only know answer to this question
pcworld
Jo MUX hai wo circuit ki tarah karya karta hai. adhik jankari ke liye csa ki book search kre. Deepak Shukla. Duble MCA-
Type your answer here... D0-D7 on 1st 8to1, D8-D15 on 2nd 8to1, S0,S1,S2 to both. The output from 1st 8to1 is D0 on the 2to1, the output from the 2nd 8to1 is D1 on the 2to1 and S3 to the 2to1. The 2to1 provides the final 16to 1 mutiplexed output, OK?
for addition of 8 numbers by IC , first we have to connect all bit numbers on different pins of IC & then take the output on remaining pins , For these first we have to make a program for vhdl in FPGA (field programmable gate array) & proceed accordingly .
The Jack Paar Program - 1962 1-8 was released on: USA: 9 November 1962
From the Earth to the Moon - 1998 We Interrupt This Program 1-8 was released on: USA: 26 April 1998
A simple program for 8 x 1 multiplexer is given below. Library ieee; use ieee.std_logic_1164.all; entity mux is port (a, b, c, d, e, f, g, h : in std_logic; s: in std_logic_vector ( 2 downto 0); y, yn : out std_logic ; St : in std_logic) ; end mux ; architecture mux of mux is signal yt : std_logic; begin process (a, b, c, d, e, f, g, h, s, yt) begin case s is when "000" => yt <= a; when "001" => yt <= b; when "010" => yt <= c; when "011" => yt <= d; when "100" => yt <= e; when "101" => yt <= f; when "110" => yt <= g; when "111" => yt <= h; when others => yt <= (others => '0'); end case; if St='1' then y <= yt; yn <= not yt; else y<= '0'; yn <= '1'; end if; end mux;
The Jack Benny Program - 1950 First Show of the Season 8-1 was released on: USA: 22 September 1957