Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital_State_Machine

Solved!
Go to solution

Can someone give me info on the "Digital_State_Machine" component in Multisim (v12.01) Misc-Digital? See attached, thank you.

0 Kudos
Message 1 of 2
(4,879 Views)
Solution
Accepted by topic author kchan6

Hi kchan6,

 

The Digital State Machine’s model can be configured to act as most types of counter or clocked combinational logic blocks. You can use this device to replace large schematics.

 

When you place the component on your workspace you can double click on it to see the properties prompt and then customize your component so basically after double clicking you would have to create a .txt file containing all the configuration of your state machine.To create a text file for the Digital State Machine, each line must contain four groups of information which are as followed:


1.  State number
2.  The output at current state
3.  The inputs which determines the next state, here  you can define more than one branch
4.  The next state

For example, a line in can look something like this:
3 0s 0s 0s 0s 0s 0s 0s 0s 0s 0s 0s 0s     1 1 1 1 1 1 1 1 1 1 1 1 ->4

The line above says the current state is 3, all outputs at this state are low, when all inputs are high transition to state 4.

The example below is a up/down counter with four states, when the inputs are high, the state machine counts up and when the inputs are low it counts down.

0 0s 0s 0s 0s 0s 0s 0s 0s 0s 0s 0s 0s 0 0 0 0 0 0 0 0 0 0 0 0 -> 3
                                                                       1 1 1 1 1 1 1 1 1 1 1 1 -> 1
       
1 0s 1z 0s 0s 0s 0s 0s 0s 0s 0s 0s 0s 0 0 0 0 0 0 0 0 0 0 0 0 -> 0
                                                                       1 1 1 1 1 1 1 1 1 1 1 1 -> 2
       
2 1z 0s 0s 0s 0s 0s 0s 0s 0s 0s 0s 0s 0 0 0 0 0 0 0 0 0 0 0 0 -> 1
                                                                      1 1 1 1 1 1 1 1 1 1 1 1 -> 3
       
3 1z 1z 0s 0s 0s 0s 0s 0s 0s 0s 0s 0s 0 0 0 0 0 0 0 0 0 0 0 0 -> 2
                                                                     1 1 1 1 1 1 1 1 1 1 1 1 -> 0

Once you have created and saved the text file, double-click on the Digital State Machine component in Multisim and then click the Edit Model button, enter the file path within the quotation marks as shown below:

+  ( clk_delay = 1.0e-9 reset_delay = 1.0e-9 state_file = "C:\temp\state.txt" reset_state = 0 )
 
also you can find attached to this Service Request an example using that component. Hope you can find this helpful!
 

 

Regards,

Sil.VI
Message 2 of 2
(4,849 Views)