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

Add support for LockSRAM and Lock nodes #270

Open
mattfel1 opened this issue Sep 26, 2019 · 1 comment
Open

Add support for LockSRAM and Lock nodes #270

mattfel1 opened this issue Sep 26, 2019 · 1 comment

Comments

@mattfel1
Copy link
Member

For plasticine. Details tbd...

@mattfel1
Copy link
Member Author

issue270_locking branch has an app called SimpleLock. The IR looks like:

x1: LockSRAM = LockSRAMNew(size_of_memory)
x2: Lock = LockNew(width_of_vec [product of nested pars?])
....
x3: UnrolledWriter = LockSRAMBankedWrite(data, Seq(addr), addr [ignore this one, ofs placeholder], None [Seq[LockWithKeys] type], ens)
...
x4...x20: LockWithKeys = LockOnKeys(x2, b###)
x21: UnrolledReader = LockSRAMBankedRead(Seq(addr), addr, Some(Seq(x4,...,x20)), ens)
...
x22: UnrolledWriter = LockSRAMBankedWrite(data, Seq(addr), addr, Some(Seq(x4,...,x20)), ens)

Handing this over so you can tell me what else needs to be changed in the IR. It's messy but I think this covers simple cases for what we talked about.

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

No branches or pull requests

1 participant