Skip to content

Commit

Permalink
Reset of FSM incorrectly implemented, text mods
Browse files Browse the repository at this point in the history
  • Loading branch information
stdefeber committed Aug 14, 2024
1 parent 499cf3f commit 9e0c20c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions corsair/templates/wb2lb_vhdl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ port(
end {{ module_name }};
architecture arch_imp of {{ module_name }} is

{% macro wb_signals(regmap_embed=False) %}
type fsm_states is (s_idle, s_write, s_read);
signal c_state : fsm_states;

{% macro wb_signals(regmap_embed=False) %}
{% if regmap_embed %}

signal wready : std_logic;
Expand Down Expand Up @@ -133,7 +133,7 @@ begin

ren <= ren_int;

{{ process_begin("ren_int", "'1'") }}
{{ process_begin("c_state", "s_idle") }}
case c_state is
when s_idle =>
if (wb_cyc_i = '1' and wb_stb_i = '1') then
Expand Down
2 changes: 1 addition & 1 deletion tests/hdl/test_lb_bridge/dut_wb2lb.svh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ wb2lb dut (
.ren (ren )
);

// Avalon-MM master
// Wishbone master
wb #(
.ADDR_W(ADDR_W),
.DATA_W(DATA_W),
Expand Down

0 comments on commit 9e0c20c

Please sign in to comment.