intel / rohd

The Rapid Open Hardware Development (ROHD) framework is a framework for describing and verifying hardware in the Dart programming language.
https://intel.github.io/rohd-website
BSD 3-Clause "New" or "Revised" License
374 stars 67 forks source link

Issue#257: Added flop like function to construct FlipFlop #381

Closed Sanchit-kumar closed 1 year ago

Sanchit-kumar commented 1 year ago

Description & Motivation

Currently, to make a flop requires FlipFlop(clk, d).q, but it would be nicer to write flop(clk, d) to get the same thing as per #257

Related Issue(s)

Fix #257

Testing

Updated test/flop_test.dart with added flop()

Documentation

Does the change require any updates to documentation? If so, where? Are they included?

Yes, need to mention additional flop() function support (not included by me).