New slave checker and updated gpio and gpio_banks

This commit is contained in:
2026-03-02 13:48:30 +01:00
parent a6a5c6ea3f
commit 628972ccaa
13 changed files with 334 additions and 245 deletions

View File

@@ -31,9 +31,7 @@ module formal_wb_timer;
.o_wb_ack(o_wb_ack)
);
formal_wb_slave_checker #(
.combinatorial_ack(0),
) wb_checker (
formal_wb_slave_checker wb_checker (
.i_clk(i_clk),
.i_rst(i_rst),
.i_wb_rst(i_wb_rst),

View File

@@ -1,8 +1,6 @@
`timescale 1ns/1ps
module wb_countdown_timer #(
parameter address = 32'h00000000 // Base address of peripheral
)(
module wb_countdown_timer (
input wire i_clk,
input wire i_rst,
output wire o_irq,
@@ -26,7 +24,7 @@ module wb_countdown_timer #(
reg counter_started = 0;
reg counter_running = 0;
reg prev_counter_running = 0;
assign o_wb_ack = wb_ack;
assign o_wb_ack = wb_ack & i_wb_cyc & i_wb_stb; // Make sure the ack only happend during a cycle
assign o_irq = irq_fired;

View File

@@ -28,8 +28,6 @@ targets:
filesets:
- rtl
toplevel: wb_countdown_timer
parameters:
- address
sim:
default_tool: icarus
filesets:
@@ -44,14 +42,9 @@ targets:
- formal_cfg
toplevel: formal_wb_timer
parameters:
- address
- FORMAL=true
parameters:
address:
datatype: int
description: Base address of register set
paramtype: vlogparam
FORMAL:
datatype: bool
description: Enable in-module formal-only logic