Skip to content

Add feature for FP constants to be used in functions - #43

Open
prkrtg wants to merge 1 commit into
mainfrom
pgupta/fp_to_funcs
Open

Add feature for FP constants to be used in functions#43
prkrtg wants to merge 1 commit into
mainfrom
pgupta/fp_to_funcs

Conversation

@prkrtg

@prkrtg prkrtg commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

If you have a WAVEFORM defined using a floating point constant, we should have the ability to use that constant when generating the ACF

Example output from building deimos:

WAVEFORM testConst {
 0: SET RG_CLOCKS TO sci_llel_high, FAST;
  .+1us: RETURN;

}

Outputs to

STATE1\NAME=STATE001
STATE1\MOD1=",1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1"
STATE1\MOD2="sci_llel_high,1,0,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1"
STATE1\MOD3=",1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,,1,1,sci_llel_high,1,0"
STATE1\MOD12="1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
STATE1\MOD4="0,1,0,0,1,0" 
STATE1\CONTROL="0,3F"
STATE1\MOD9="0,1,0"
STATE1\MOD10="1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0"

@weatherhead99

Copy link
Copy Markdown
Contributor

I have written you into my will

@weatherhead99

Copy link
Copy Markdown
Contributor

LGTM I think this means the constants have to be defined physically before their use. But that's not too big of a limitation we already have to do that with params (though it's not required by the Archon)

@weatherhead99 weatherhead99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no objections

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants