tree: 4f6f1bcc504e0b9ce6f0396215f2861ea3763836 [path history] [tgz]
  1. README.md
  2. user_proj_block.v
  3. yblock.v
  4. ycell.v
verilog/morphle/README.md

Verilog Library of building blocks for Morphle Logic

ycell.v

The basic element is ycell (“yellow cell”, named so because of the first illustrations). This file also defines a trivial configuration circuit that shifts in 3 configuration bits and decodes the 8 possible combinations into the needed control signals.

yblock.v

yblock just being an array of ycells of the specified BLOCKWIDTH and BLOCKHEIGHT. Besides connecting the ycells to each other, yblock connects the wires at the edges of the array to ports so it can be used as a component in a larger system.

Caravel User Project Examples

user_proj_block.v

This generates a block that will be used by ../rtl/user_project_wrapper.v and so must define all the pins expected by that circuit. These include io pins (digital and analog) which are left unconnected (inputs) or set to 0 (outputs and enables). There is also a dummy wishbone interface with a single 32 bit register that allows anything written to it (with individual byte selects) to be read back.

The actual circuit is a 16x16 block of interconnected yellow cells. The left, right and bottom sides of the array are also left dangling (outputs) or connected to 0 (inputs), while the top is connected to the logic analyzer pins. The configuration out bits also go to the logic analyzer even though they are on the down side of the block.