Refactor tests (better grouping + cocotb support) (#15)
* initial refactor * fix cocotb tests * fix typecheck * install verilator
This commit is contained in:
@@ -2,6 +2,10 @@ interface apb3_intf #(
|
||||
parameter DATA_WIDTH = 32,
|
||||
parameter ADDR_WIDTH = 32
|
||||
);
|
||||
// Clocking
|
||||
logic PCLK;
|
||||
logic PRESETn;
|
||||
|
||||
// Command
|
||||
logic PSEL;
|
||||
logic PENABLE;
|
||||
@@ -15,6 +19,9 @@ interface apb3_intf #(
|
||||
logic PSLVERR;
|
||||
|
||||
modport master (
|
||||
input PCLK,
|
||||
input PRESETn,
|
||||
|
||||
output PSEL,
|
||||
output PENABLE,
|
||||
output PWRITE,
|
||||
@@ -27,6 +34,9 @@ interface apb3_intf #(
|
||||
);
|
||||
|
||||
modport slave (
|
||||
input PCLK,
|
||||
input PRESETn,
|
||||
|
||||
input PSEL,
|
||||
input PENABLE,
|
||||
input PWRITE,
|
||||
|
||||
Reference in New Issue
Block a user