Sponsored Content
Top Forums Programming Bitwise operation for state machine Post 302880873 by anand.shah on Tuesday 24th of December 2013 06:08:17 AM
Old 12-24-2013
Dear Don Cragun,
Thank you very much for your reply.
I am using C macro to accomplish this. I can not pass states to remove from
Code:
state

as I am not aware of previous state. What I want is their should always have no more than one of the three low order bits set.
Example :- If I am in
Code:
state1

currently then my state variable would be
Code:
 xxxx x001

. Now If I want to set state to
Code:
state3

then my state variable should become
Code:
 xxxx x100.

Thank you.
 

2 More Discussions You Might Find Interesting

1. AIX

Open firmware state to running state

Hi Admins, I am having a whole system lpar in open firmware state on HMC. How can I bring it to running state ? Let me know. Thanks. (2 Replies)
Discussion started by: snchaudhari2
2 Replies

2. Shell Programming and Scripting

Vim function to generate RTL Code(finite state machine) in verilog

Hi I wanted to call the AutoFsm function (given below) in vim to generate a code something like: **********verilog code to generate ************* always @(posedge clk or negedge rst_n) begin if(!rst_n) begin state_r <= #1 next_stateascii_r; ... (0 Replies)
Discussion started by: dll_fpga
0 Replies
All times are GMT -4. The time now is 10:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy