diff options
Diffstat (limited to 'midterm/SRC/interface.sv')
| -rw-r--r-- | midterm/SRC/interface.sv | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/midterm/SRC/interface.sv b/midterm/SRC/interface.sv new file mode 100644 index 0000000..36cb3c2 --- /dev/null +++ b/midterm/SRC/interface.sv @@ -0,0 +1,19 @@ +interface intf ( + input logic clk +); + import typedef_pkg::*; + + logic op_start = 1'b0; + operation_t operation = ADD; + operand_t operand_a = '0; + operand_t operand_b = '0; + result_t result; + + clocking cb @(posedge clk); + output op_start; + output operation; + output operand_a; + output operand_b; + input result; + endclocking +endinterface : intf |