News for hackers. Stuff that matters.
Re:Chisel: A Modern Hardware Design Language by tails4e on Wednesday December 27, 2023 @10:44AM (#38783078)
Thanks, so a single clock and reset is implicit, but clock2 (or more) is explicit.
Re:Chisel: A Modern Hardware Design Language by seldridge on Wednesday December 27, 2023 @10:57AM (#38783197)
Yes. There's two common types of modules with different behavior here: `Module` and `RawModule`. The former has implicit clock and reset ports. The latter has no implicit clock and reset. All design can be done with the latter, just a bit more verbosely---all clock and reset ports need to be defined and anytime a construct that needs a clock or reset is used (e.g., a register), it would need to be wrapped in a `withClock`/`withReset`/`withClockAndReset`.