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

CDMA #8

Open
JunningWu opened this issue Jun 1, 2018 · 2 comments
Open

CDMA #8

JunningWu opened this issue Jun 1, 2018 · 2 comments

Comments

@JunningWu
Copy link
Owner

JunningWu commented Jun 1, 2018

CDMA作为Convolution流水线的一环,从SRAM和DRAM中读取数据,并存入CBUF中。CDMA支持多种格式的数据输入,包括Pixel data /Feature data /Uncompressed/compressed weight /WMB /WGS等。CDMA具有两个读通道,AXI接口协议,分别完成数据和权值的读取。CDMA的只发出读请求,且64位对齐访问。

http://nvdla.org/_images/ias_image17_cdma.png

在CDMA的内部,存在4个子模块,分别为CDMA_DC,CDMA_WG,CDMA_IMG和一个权值读取模块CDMA_WT,每个子模块的工作流程一样,只不过数据在存入CBUF的时候顺序不同而已;且某一时刻只有一个子模块处于工作状态。

@JunningWu
Copy link
Owner Author

status_0和status_1寄存器位,表示当group0/1使能且consumer相同的时候,为1;不同则为2,未使能则为0.

@JunningWu
Copy link
Owner Author

CDMA的工作成流程大致如下:
1.检查CBUF是否有足够的剩余空间存放读取的数据
2.发起读数据请求
3.将数据暂存在共享存储器中
4.根据配置,将数据的顺序重新摆放
5.发起CBUF的写入请求
6.将整理后的数据写入CBUF
7.更新CBUF的相关状态寄存器,以供CDMA查阅

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