summaryrefslogtreecommitdiff
path: root/homework_2/SRC/interface.sv
diff options
context:
space:
mode:
Diffstat (limited to 'homework_2/SRC/interface.sv')
-rw-r--r--homework_2/SRC/interface.sv15
1 files changed, 15 insertions, 0 deletions
diff --git a/homework_2/SRC/interface.sv b/homework_2/SRC/interface.sv
new file mode 100644
index 0000000..a9906c8
--- /dev/null
+++ b/homework_2/SRC/interface.sv
@@ -0,0 +1,15 @@
+// using a virtual interface handle
+interface des_if (input bit clk);
+ logic rstn;
+ logic in;
+ logic out;
+
+ clocking cb @(posedge clk);
+ default input #1step output #3ns;
+ input out;
+ output in;
+ endclocking
+
+endinterface
+
+// Top level test \ No newline at end of file