A
Aiken
Guest
I need to make a instruction decoder.
the instruction_v is 32 bit.
and I have 10 process will be command by the instruction.
Input:
instruction_v(31 downto 24) is command type
instruction_v(23 downto 0) is the argument (some of the instruction
don't need argument)
Output
they are NOT register, just wires)
5 one bit std_logic , @ one for one simple instruction (only run/not
run)
5 std_logic_vector(n downto 0) (differnet instruction n will be
different)
My Question is,
if I use "case" statement, in each case(one of the insturction), after
I setup the correct instruction output, how can I set other output to
be "zero"? do I need to do it in every cases? or?
the instruction_v is 32 bit.
and I have 10 process will be command by the instruction.
Input:
instruction_v(31 downto 24) is command type
instruction_v(23 downto 0) is the argument (some of the instruction
don't need argument)
Output
5 one bit std_logic , @ one for one simple instruction (only run/not
run)
5 std_logic_vector(n downto 0) (differnet instruction n will be
different)
My Question is,
if I use "case" statement, in each case(one of the insturction), after
I setup the correct instruction output, how can I set other output to
be "zero"? do I need to do it in every cases? or?