vram/VRAMCore: derive FShow for request and response types

Handy in unit tests to display the structs as they fly around.
This commit is contained in:
David Anderson 2024-09-14 16:40:14 -07:00
parent 65d13a0e50
commit 8247661a38
1 changed files with 2 additions and 2 deletions

View File

@ -28,11 +28,11 @@ typedef EBR#(ByteAddr, VRAMData, ByteAddr, VRAMData) ByteRAM;
typedef struct {
VRAMAddr addr;
Maybe#(VRAMData) data;
} VRAMRequest deriving (Bits, Eq);
} VRAMRequest deriving (Bits, Eq, FShow);
typedef struct {
VRAMData data;
} VRAMResponse deriving (Bits, Eq);
} VRAMResponse deriving (Bits, Eq, FShow);
module mkNibbleRAM_ECP5(ChipAddr chip_addr, EBR#(ByteAddr, Bit#(4), ByteAddr, Bit#(4)) ifc);
EBRPortConfig cfg = defaultValue;