From 382b73b0989dc00093f4e5daa67d4386722b19fb Mon Sep 17 00:00:00 2001 From: jjsuperpower Date: Thu, 23 Jun 2022 23:04:28 -0500 Subject: basic myhdl setup working --- hdl/testing/inc.v | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 hdl/testing/inc.v (limited to 'hdl/testing/inc.v') diff --git a/hdl/testing/inc.v b/hdl/testing/inc.v deleted file mode 100644 index 2f3291b..0000000 --- a/hdl/testing/inc.v +++ /dev/null @@ -1,39 +0,0 @@ -// File: inc.v -// Generated by MyHDL 0.11 -// Date: Sun Jun 19 22:02:52 2022 - - -`timescale 1ns/10ps - -module inc ( - count, - enable, - clock, - reset -); -// Incrementer with enable. -// -// count -- output -// enable -- control input, increment when 1 -// clock -- clock input -// reset -- asynchronous reset input - -output [7:0] count; -reg [7:0] count; -input enable; -input clock; -input reset; - - -always @(posedge clock, negedge reset) begin: INC_SEQ - if (reset == 0) begin - count <= 0; - end - else begin - if (enable) begin - count <= (count + 1); - end - end -end - -endmodule -- cgit v1.2.3