Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

源码问题(gpio模块) #32

Open
Shell-picking opened this issue Oct 4, 2019 · 2 comments
Open

源码问题(gpio模块) #32

Shell-picking opened this issue Oct 4, 2019 · 2 comments

Comments

@Shell-picking
Copy link

您好,我最近在读蜂鸟这个项目源码。发现几个问题想向您请教。
1.在sirv_gpio.v中,有一段代码首先对T_3370_bits_index后五位取异或,再和0x3e0相与,将后五位置零。是有什么别的作用吗?(见图一)
图一

2.在代码中存在多处重复连线的原因是?比如在sirv_gpio.v中,T_3334_bits_extra、T_3370_bits_extra和T_3295_bits_extra这三个wire变量。依次采用这样的一次传递赋值,而其它处也没有使用。这样有别的作用?(见图二)
图二

@kmmy2016
Copy link

kmmy2016 commented Oct 4, 2019 via email

@hyf6661669
Copy link

@Shell-picking
这些verilog代码其实是由chisel生成的,所以基本没有任何可读性。想理解gpio的设计需要去SiFive的仓库里看chisel源码。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants