Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions docs/chapter7/3testcircuits.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,31 @@ Click `Run All` to run all the tests in an instant
And get detailed results!

![drawing](../images/img_chapter7/detailed.png)
### TB Input and TB Output

Once a test is attached to a circuit, CircuitVerse automatically generates **TB Input** and **TB Output** blocks on the canvas for each labeled Input/Output element used in the test. These blocks let you visually track the test's live state.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

Each block displays:
- The TestBench name
- Whether the test is actively running
- The current test case number
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

> Properties that can be customized in the **PROPERTIES** panel include: **BitWidth, Delay, Label, Label Direction, Direction**
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

When a TB_Output block is correctly matched (by label) to a real Output element in your circuit, it displays **"Paired"**. Selecting either block highlights it in yellow, same as any other circuit element.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

You can verify this behavior in the live circuit embedded below:

<iframe
width="600px"
height="400px"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
src="https://circuitverse.org/simulator/embed/tb-input-output-demo"
title="TB Input and TB Output demo"
id="projectPreview"
scrolling="no"
webkitAllowFullScreen
mozAllowFullScreen
allowFullScreen
>
{" "}
</iframe>