Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submodule Latency Count Inference #22

Open
6 of 9 tasks
VonTum opened this issue Nov 9, 2024 · 0 comments
Open
6 of 9 tasks

Submodule Latency Count Inference #22

VonTum opened this issue Nov 9, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@VonTum
Copy link
Collaborator

VonTum commented Nov 9, 2024

Infer Latency Count-based parameters. Typical example: The FIFO.

FIFO #(DEPTH: 100) fromFIFO
FIFO #(DEPTH: 100) f // No T, no LATENCY_MARGIN

if f.ready() {
  if fromFIFO.pop() : int d { // Let's say this takes 3 cycles
    reg int data = d * d // Another pipeline stage
    f.push(data) // Compiler should infer LATENCY_MARGIN = 4; T: type int
  }
}
  • Concrete Typecheck with HM
  • Instantiate Modules interleaved with Concrete Typecheck
  • Delayed Constraints for HM
  • Partial Concrete Typechecking
  • Type Inference for Concrete Types -> First to get my toes wet
  • Inference from Ports
  • Inference from Generative Parameters
  • Extend inference to Latency Count
  • Hover for inline submodules too

This is the main goal for the Nov 27th Talk!

@VonTum VonTum added the enhancement New feature or request label Nov 9, 2024
@VonTum VonTum self-assigned this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant