Skip to main content

ENCODER

 library ieee;

use ieee.std_logic_1164.all;

entity encoder is

port(y:in std_logic_vector(3 downto 0); a,b : out std_logic);

end encoder;

architecture a_encoder of encoder is

begin

process(y)

begin

case yis

when "1000" => a<='0';b<='0';

when "0100" => a<='0';b<='1';

when "0010" => a<='1';b<='0';

when "0001" => a<='1';b<='1';

when others => null;

end case;

end process;

end a_encoder;

Comments

Popular posts from this blog

@IMPACT ON SOCIAL MEDIA

  Introduction: Social media has become an integral part of our daily lives, with platforms such as Facebook, Twitter, and Instagram being used by billions of people around the world. In this essay, we will discuss the impact of social media on various aspects of our lives, including communication, relationships, and the spread of information. Body: Impact on communication: Social media has greatly impacted the way we communicate with each other. Platforms like WhatsApp and Facebook Messenger allow us to stay in touch with friends and family members who live far away, and social media has made it easier to connect with people from all over the world. However, some argue that social media has also led to a decrease in face-to-face communication and an increase in superficial interactions. Impact on relationships: Social media has also had a significant impact on the way we form and maintain relationships. On one hand, social media can help us stay connected with friends and family m...

Methods involved in data collection

 Introduction: Data collection is a crucial step in any research project, as it provides the raw material for analysis and interpretation. There are various methods of data collection, each with its own strengths and weaknesses depending on the research question and context. In this essay, we will explore some of the most common methods of data collection, using the example of a survey on consumer preferences for coffee shops. Sampling: The first step in data collection is to identify a representative sample of the population of interest. This can be done through random sampling, stratified sampling, or convenience sampling, depending on the research goals and available resources. In our example, we might use convenience sampling by distributing the survey to customers at a particular coffee shop chain. Survey design: Once the sample is identified, the next step is to design the survey instrument. This involves selecting appropriate questions, response options, and scales, as well ...

Job Interview conversation in English

  Interviewer: Good morning, how are you today? Interviewee: Good morning, I'm doing well, thank you. How are you? Interviewer: I'm good, thank you. Can you tell me a little bit about your background and experience? Interviewee: Sure, I have a degree in XYZ and have been working in the field of ABC for the past 5 years. I have experience in project management, team leadership, and problem solving. Interviewer: That's great. Can you give me an example of a project you've worked on that you're particularly proud of? Interviewee: One project I worked on was implementing a new software system for our company. It was a complex project that required coordination with multiple departments and a tight deadline. I was able to successfully lead the team to complete the project on time and under budget. Interviewer: That sounds impressive. Can you tell me about a time when you had to deal with a difficult situation at work? Interviewee: One situation I faced was when a team me...