Skip to content

Commit

Permalink
Modifications in SpaceWire Channel for future revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
rodmarfran committed May 13, 2021
1 parent 7476104 commit 0b5a2c1
Show file tree
Hide file tree
Showing 37 changed files with 4,874 additions and 4,973 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*.o
*.ko
*.obj
*.objdump
#*.elf

# Linker output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ architecture spwerr_arch of spwerr is
begin

-- Combinatorial process
process(r, err_usr_i, err_link_i) is
process(r, rst, err_usr_i, err_link_i) is
variable v : regs_type;
begin
v := r;
Expand Down Expand Up @@ -319,16 +319,25 @@ begin
end if;
end if;

-- Reset
if rst = '1' then
v := regs_reset;
err_usr_o.err_stat_o <= stby;
err_link_o.err_disc_o <= '0';
err_link_o.err_par_o <= '0';
err_link_o.err_esc_o <= '0';
err_link_o.err_credit_o <= '0';
err_link_o.err_ch_seq_o <= '0';
end if;

-- Update future state regs.
rin <= v;
end process;

-- Sequential process - rst, update regs.
process(clk, rst) is
-- Sequential process - update regs.
process(clk) is
begin
if (rst = '1') then
r <= regs_reset;
elsif rising_edge(clk) then
if rising_edge(clk) then
r <= rin;
end if;
end process;
Expand Down
Loading

0 comments on commit 0b5a2c1

Please sign in to comment.