Skip to content

Commit

Permalink
justify; initialize signals
Browse files Browse the repository at this point in the history
  • Loading branch information
cbakalis-slac committed Mar 12, 2024
1 parent c8195ce commit 5532793
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions protocols/pgp/pgp2fc/core/rtl/CRC7Rtl.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ entity CRC7Rtl is
end CRC7Rtl;

architecture imp_crc of CRC7Rtl is
signal lfsr_q: std_logic_vector (7 downto 0);
signal lfsr_c: std_logic_vector (7 downto 0);

signal lfsr_q: std_logic_vector (7 downto 0) := (others => '0');
signal lfsr_c: std_logic_vector (7 downto 0) := (others => '0');

begin

crc_out <= lfsr_c when crc_en = '1' else lfsr_q;
crc_out_r <= lfsr_q;

Expand Down
2 changes: 1 addition & 1 deletion protocols/pgp/pgp2fc/core/rtl/Pgp2fcTxPhy.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ begin
end process;

crcRst <= '1' when fcWordCount = FC_WORDS_G or pgpTxClkRst = '1' else '0';
crcEn <= '1' when curState = ST_FC_C else '0';
crcEn <= '1' when curState = ST_FC_C else '0';

U_Crc7 : entity surf.CRC7Rtl
port map (
Expand Down

0 comments on commit 5532793

Please sign in to comment.