Skip to content

Commit

Permalink
test: murax: add clock division through logic
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Comodi <[email protected]>
  • Loading branch information
acomodi committed May 14, 2021
1 parent eb767b3 commit e895933
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/murax/basys3_toplevel.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ module toplevel(
output [15:0] io_led
);

// Divide clock by 2
reg clk50 = 1'b0;
always @(posedge io_mainClk)
clk50 <= !clk50;

wire clk50_bufg;
BUFG bufg50 (.I(clk50), .O(clk50_bufg));

wire [31:0] io_gpioA_read;
wire [31:0] io_gpioA_write;
wire [31:0] io_gpioA_writeEnable;
Expand All @@ -24,7 +32,7 @@ module toplevel(

Murax murax (
.io_asyncReset(0),
.io_mainClk (io_mainClk ),
.io_mainClk (clk50_bufg ),
.io_jtag_tck(1'b0),
.io_jtag_tdi(1'b0),
.io_jtag_tms(1'b0),
Expand Down

0 comments on commit e895933

Please sign in to comment.