Skip to content

feat!: specify databus arrays for BB - #6239

Merged
guipublic merged 10 commits into
masterfrom
gd/databus_opcode
May 8, 2024
Merged

feat!: specify databus arrays for BB#6239
guipublic merged 10 commits into
masterfrom
gd/databus_opcode

Conversation

@guipublic

@guipublic guipublic commented May 7, 2024

Copy link
Copy Markdown
Contributor

This PR adds a field to the MemoryInit opcode to specify the memory blocks used for the databus.

It is related to issue noir-lang/noir#4974

This is a breaking change because it modifies ACIR format.

@ghost ghost changed the title specify databus arrays for BB feat!: specify databus arrays for BB May 7, 2024
@ghost
ghost requested review from TomAFrench and vezenovm May 7, 2024 12:26
block_id: BlockId,
init: Vec<Witness>,
/// 0 for regular memory, 1 for call-data and 2 for return-data
databus: u8,

ghost May 7, 2024

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.

I feel an enum would be clearer here and it also aligns with how we have been distinguishing opcodes already

ghost May 7, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

ghost 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.

Just looks like we have some noir tests that need to be updated

@ghost
ghost merged commit 01d9f24 into master May 8, 2024
@ghost
ghost deleted the gd/databus_opcode branch May 8, 2024 12:36
@ghost ghost mentioned this pull request May 8, 2024
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.

3 participants