Why doesn't my de-multiplexer with the selected signal assignment work?











up vote
0
down vote

favorite












It might be a stupid question...
I want to make a de-multiplexer with one input: a , a byte and two outputs, x and y(also bytes).
there is also a signal input : s
The de-multiplexer should work with the selected signal assignment.
Whenever s is 1, x should be the value of a. When s is 0, the value of y should be the value of a.



       with s select x <= a when '1';
with s select y <= a when '0';


when i put it in a process like this:



p1 : process (s,a)

with s select x <= a when '1';
with s select y <= a when '0';


end process;



I made a testbench and used it to test my dmux, when i trie to run it, it says that i didn't use al possibilities, but I did? Right?



Can anyone help me?



Thanks in advance










share|improve this question
























  • "doesn't work" isn't a a problem statement. Provide a Minimal, Complete, and Verifiable example including a description of the problem and the means to replicate it.
    – user1155120
    Nov 21 at 16:24










  • I edited my question with some extra info
    – Worst
    Nov 21 at 16:33






  • 1




    ok, i fixed it, I forgot the others statement...
    – Worst
    Nov 21 at 16:47










  • A selected signal assignment has an equivalent case statement, where all the choices must be covered. The base type of s isn't provided. If it's declared as type std_logic the base type is std_ulogic, a character enumeration type with possible values 'U', X', '0'. '1', 'Z', 'W', 'L', 'H', and '-'. What is the type of s? Are all the choices covered?
    – user1155120
    Nov 21 at 16:49










  • entity dmux is Port ( a : in std_logic_vector (7 downto 0); s : in std_logic; x : out std_logic_vector (7 downto 0); y : out std_logic_vector (7 downto 0) ); end dmux;
    – Worst
    Nov 21 at 17:03















up vote
0
down vote

favorite












It might be a stupid question...
I want to make a de-multiplexer with one input: a , a byte and two outputs, x and y(also bytes).
there is also a signal input : s
The de-multiplexer should work with the selected signal assignment.
Whenever s is 1, x should be the value of a. When s is 0, the value of y should be the value of a.



       with s select x <= a when '1';
with s select y <= a when '0';


when i put it in a process like this:



p1 : process (s,a)

with s select x <= a when '1';
with s select y <= a when '0';


end process;



I made a testbench and used it to test my dmux, when i trie to run it, it says that i didn't use al possibilities, but I did? Right?



Can anyone help me?



Thanks in advance










share|improve this question
























  • "doesn't work" isn't a a problem statement. Provide a Minimal, Complete, and Verifiable example including a description of the problem and the means to replicate it.
    – user1155120
    Nov 21 at 16:24










  • I edited my question with some extra info
    – Worst
    Nov 21 at 16:33






  • 1




    ok, i fixed it, I forgot the others statement...
    – Worst
    Nov 21 at 16:47










  • A selected signal assignment has an equivalent case statement, where all the choices must be covered. The base type of s isn't provided. If it's declared as type std_logic the base type is std_ulogic, a character enumeration type with possible values 'U', X', '0'. '1', 'Z', 'W', 'L', 'H', and '-'. What is the type of s? Are all the choices covered?
    – user1155120
    Nov 21 at 16:49










  • entity dmux is Port ( a : in std_logic_vector (7 downto 0); s : in std_logic; x : out std_logic_vector (7 downto 0); y : out std_logic_vector (7 downto 0) ); end dmux;
    – Worst
    Nov 21 at 17:03













up vote
0
down vote

favorite









up vote
0
down vote

favorite











It might be a stupid question...
I want to make a de-multiplexer with one input: a , a byte and two outputs, x and y(also bytes).
there is also a signal input : s
The de-multiplexer should work with the selected signal assignment.
Whenever s is 1, x should be the value of a. When s is 0, the value of y should be the value of a.



       with s select x <= a when '1';
with s select y <= a when '0';


when i put it in a process like this:



p1 : process (s,a)

with s select x <= a when '1';
with s select y <= a when '0';


end process;



I made a testbench and used it to test my dmux, when i trie to run it, it says that i didn't use al possibilities, but I did? Right?



Can anyone help me?



Thanks in advance










share|improve this question















It might be a stupid question...
I want to make a de-multiplexer with one input: a , a byte and two outputs, x and y(also bytes).
there is also a signal input : s
The de-multiplexer should work with the selected signal assignment.
Whenever s is 1, x should be the value of a. When s is 0, the value of y should be the value of a.



       with s select x <= a when '1';
with s select y <= a when '0';


when i put it in a process like this:



p1 : process (s,a)

with s select x <= a when '1';
with s select y <= a when '0';


end process;



I made a testbench and used it to test my dmux, when i trie to run it, it says that i didn't use al possibilities, but I did? Right?



Can anyone help me?



Thanks in advance







vhdl vivado test-bench






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 at 17:11

























asked Nov 21 at 15:07









Worst

14




14












  • "doesn't work" isn't a a problem statement. Provide a Minimal, Complete, and Verifiable example including a description of the problem and the means to replicate it.
    – user1155120
    Nov 21 at 16:24










  • I edited my question with some extra info
    – Worst
    Nov 21 at 16:33






  • 1




    ok, i fixed it, I forgot the others statement...
    – Worst
    Nov 21 at 16:47










  • A selected signal assignment has an equivalent case statement, where all the choices must be covered. The base type of s isn't provided. If it's declared as type std_logic the base type is std_ulogic, a character enumeration type with possible values 'U', X', '0'. '1', 'Z', 'W', 'L', 'H', and '-'. What is the type of s? Are all the choices covered?
    – user1155120
    Nov 21 at 16:49










  • entity dmux is Port ( a : in std_logic_vector (7 downto 0); s : in std_logic; x : out std_logic_vector (7 downto 0); y : out std_logic_vector (7 downto 0) ); end dmux;
    – Worst
    Nov 21 at 17:03


















  • "doesn't work" isn't a a problem statement. Provide a Minimal, Complete, and Verifiable example including a description of the problem and the means to replicate it.
    – user1155120
    Nov 21 at 16:24










  • I edited my question with some extra info
    – Worst
    Nov 21 at 16:33






  • 1




    ok, i fixed it, I forgot the others statement...
    – Worst
    Nov 21 at 16:47










  • A selected signal assignment has an equivalent case statement, where all the choices must be covered. The base type of s isn't provided. If it's declared as type std_logic the base type is std_ulogic, a character enumeration type with possible values 'U', X', '0'. '1', 'Z', 'W', 'L', 'H', and '-'. What is the type of s? Are all the choices covered?
    – user1155120
    Nov 21 at 16:49










  • entity dmux is Port ( a : in std_logic_vector (7 downto 0); s : in std_logic; x : out std_logic_vector (7 downto 0); y : out std_logic_vector (7 downto 0) ); end dmux;
    – Worst
    Nov 21 at 17:03
















"doesn't work" isn't a a problem statement. Provide a Minimal, Complete, and Verifiable example including a description of the problem and the means to replicate it.
– user1155120
Nov 21 at 16:24




"doesn't work" isn't a a problem statement. Provide a Minimal, Complete, and Verifiable example including a description of the problem and the means to replicate it.
– user1155120
Nov 21 at 16:24












I edited my question with some extra info
– Worst
Nov 21 at 16:33




I edited my question with some extra info
– Worst
Nov 21 at 16:33




1




1




ok, i fixed it, I forgot the others statement...
– Worst
Nov 21 at 16:47




ok, i fixed it, I forgot the others statement...
– Worst
Nov 21 at 16:47












A selected signal assignment has an equivalent case statement, where all the choices must be covered. The base type of s isn't provided. If it's declared as type std_logic the base type is std_ulogic, a character enumeration type with possible values 'U', X', '0'. '1', 'Z', 'W', 'L', 'H', and '-'. What is the type of s? Are all the choices covered?
– user1155120
Nov 21 at 16:49




A selected signal assignment has an equivalent case statement, where all the choices must be covered. The base type of s isn't provided. If it's declared as type std_logic the base type is std_ulogic, a character enumeration type with possible values 'U', X', '0'. '1', 'Z', 'W', 'L', 'H', and '-'. What is the type of s? Are all the choices covered?
– user1155120
Nov 21 at 16:49












entity dmux is Port ( a : in std_logic_vector (7 downto 0); s : in std_logic; x : out std_logic_vector (7 downto 0); y : out std_logic_vector (7 downto 0) ); end dmux;
– Worst
Nov 21 at 17:03




entity dmux is Port ( a : in std_logic_vector (7 downto 0); s : in std_logic; x : out std_logic_vector (7 downto 0); y : out std_logic_vector (7 downto 0) ); end dmux;
– Worst
Nov 21 at 17:03

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53414966%2fwhy-doesnt-my-de-multiplexer-with-the-selected-signal-assignment-work%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53414966%2fwhy-doesnt-my-de-multiplexer-with-the-selected-signal-assignment-work%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Berounka

Sphinx de Gizeh

Different font size/position of beamer's navigation symbols template's content depending on regular/plain...