Unverified Commit 991fa8a2 authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

Fix `Reg()` to properly handle clocks as rvalues (backport #3775) (#3778)

* Fix Reg() to properly handle clocks as rvalues (#3775)

Previously, it was not calling .ref. It was thus not properly:
1. Checking that the clock is bound hardware
2. Checking that the clock is visible in the current scope
3. Reifying the clock if its a view

Note that RegInit() was already correctly calling .ref.

(cherry picked from commit 1c348c55

)

# Conflicts:
#	src/test/scala/chiselTests/ClockSpec.scala

* Resolve backport conflicts

* fix test

---------

Co-authored-by: default avatarJack Koenig <koenig@sifive.com>
parent 87806e5f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment