VHDL equations to table of truth

  • Thread starter Thread starter Max0007
  • Start date Start date
  • Tags Tags
    Table
AI Thread Summary
To create a truth table for VHDL equations, it is common to combine multiple outputs into a single table rather than creating separate tables for each output. The equations provided suggest that s_o(0) and s_o(1) represent the two least significant bits of a variable s_o. When documenting the behavior of outputs based on inputs, a unified truth table is typically more effective. For implementing this in VHDL, single-output constructs like WITH-SELECT or PROCESS statements are often used. Understanding how to represent these outputs together will clarify their relationships in the truth table.
Max0007
Messages
66
Reaction score
1

Homework Statement


I have a quick question here,
Since I have s_o(o) and s_o(1) do I do 2 table of truth for those or mix both and do one table of truth?

the (1)/(0 ) are confusing me.

Homework Equations



w_o <= not d_i and (b_i(1) or d_i);

s_o(0) <= d_i or b_i(1);

s_o(1) <= not b_i(0) and d_i;

The Attempt at a Solution

Thank you very much and sorry for asking so much questions lately :)
 
Physics news on Phys.org
If you are generating a truth table to document the behavior of one or more outputs as a function of some inputs, then one truth table with multiple outputs is commonly done. If your question is how best to implement a "truth table"-like description in VHDL, I have only seen single-output constructs using a WITH-SELECT or PROCESS statement.

s_o(1) and s_o(0) look like the 2 least significant bits of a variable s_o, a "bit_vector" type --probably the outputs that you are interested in defining.
 

Similar threads

Replies
4
Views
5K
Replies
1
Views
2K
Replies
3
Views
2K
Replies
5
Views
3K
Replies
10
Views
3K
Back
Top