From f39ec2ef5a3b2140b43d631056c2f974ca1895d5 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Date: Wed, 14 Apr 2021 22:38:41 -0300 Subject: Fix doc formatting and generation (#1863) * Remove space between backticks and language * Make code examples in memories explanation work Co-authored-by: Jack Koenig --- docs/src/explanations/sequential-circuits.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/src/explanations/sequential-circuits.md') diff --git a/docs/src/explanations/sequential-circuits.md b/docs/src/explanations/sequential-circuits.md index 938416ac..36bbb1aa 100644 --- a/docs/src/explanations/sequential-circuits.md +++ b/docs/src/explanations/sequential-circuits.md @@ -11,7 +11,7 @@ import chisel3._ val in = Bool() ``` The simplest form of state element supported by Chisel is a positive edge-triggered register, which can be instantiated as: -``` scala mdoc:compile-only +```scala mdoc:compile-only val reg = RegNext(in) ``` This circuit has an output that is a copy of the input signal `in` delayed by one clock cycle. Note that we do not have to specify the type of Reg as it will be automatically inferred from its input when instantiated in this way. In the current version of Chisel, clock and reset are global signals that are implicitly included where needed. -- cgit v1.2.3