Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add a way to output images of data types#1548

jrmoserbaltimore started this conversation inIdeas
Discussion options

Like really just let me make a call to spit out a PNG showing the fields in here laid out like in the docs.

classInstruction(data.Struct):instruction:data.FlexibleLayout({# The last 5 are always the opcode"opcode":data.Field(Signal(5),27),"bit_ops":data.Field(data.StructLayout({"bitmask":Signal(24)            }),0),"accumulator_ops":data.Field(data.StructLayout({"coefficient":Signal(16),"constant":Signal(11)            }),0),# TODO:  SKP"register_ops":data.Field(data.FlexibleLayout({"coefficient":data.Field(Signal(16),0),"register":data.Field(unsigned(6),21)            }),0),# TODO:  MULX?"dram_ops":data.Field(data.StructLayout({"coefficient":Signal(11),"address":unsigned(16)            }),0)# TODO:  RMPA?  It basically ignores the address field# TODO: LFO, CHO        })
You must be logged in to vote

Replies: 1 comment

Comment options

Thelib.data module provides an introspection API that lets you do this. We don't currently have a plan to add this feature.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Ideas
Labels
None yet
2 participants
@jrmoserbaltimore@whitequark

[8]ページ先頭

©2009-2025 Movatter.jp