Skip to content

Commit

Permalink
feature: counter and sipo to support clock negedge operation
Browse files Browse the repository at this point in the history
  • Loading branch information
jjts committed Nov 1, 2023
1 parent 8dd3cd9 commit 6171c2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

module iob_counter #(
parameter DATA_W = 21,
parameter RST_VAL = {DATA_W{1'b0}}
parameter RST_VAL = {DATA_W{1'b0}},
parameter CLKEDGE = "posedge"
) (
`include "clk_en_rst_s_port.vs"

Expand All @@ -17,7 +18,7 @@ module iob_counter #(
iob_reg_re #(
.DATA_W (DATA_W),
.RST_VAL(RST_VAL),
.CLKEDGE("posedge")
.CLKEDGE("CLKEDGE")
) reg0 (
`include "clk_en_rst_s_s_portmap.vs"
.rst_i (rst_i),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
`timescale 1ns / 1ps

module iob_sipo_reg #(
parameter DATA_W = 21
parameter DATA_W = 21,
parameter CLKEDGE = "pos"
) (

`include "clk_en_rst_s_port.vs"
Expand All @@ -19,7 +20,7 @@ module iob_sipo_reg #(
iob_reg #(
.DATA_W (DATA_W),
.RST_VAL(0),
.CLKEDGE("posedge")
.CLKEDGE("CLKEDGE")
) reg0 (
`include "clk_en_rst_s_s_portmap.vs"

Expand Down

0 comments on commit 6171c2e

Please sign in to comment.