Skip to content

Commit

Permalink
Updated to use MetaMatch
Browse files Browse the repository at this point in the history
  • Loading branch information
JimLewis committed Dec 12, 2022
1 parent ed141fe commit bd35367
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Axi4/src/Axi4Manager.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
--
-- Revision History:
-- Date Version Description
-- 12/2022 2022.12 Updated read check to use MetaMatch.
-- 10/2022 2022.10 Changed enum value PRIVATE to PRIVATE_NAME due to VHDL-2019 keyword conflict.
-- 05/2022 2022.05 Updated FIFOs so they are Search => PRIVATE
-- 03/2022 2022.03 Updated calls to NewID for AlertLogID and FIFOs
Expand Down Expand Up @@ -530,7 +531,7 @@ begin
ExpectedData := SafeResize(TransRec.DataToModel, ExpectedData'length) ;
--!!9 TODO: Change format to Transaction #, Address, Prot, Read Data
--!! Run regressions before changing
AffirmIf( DataCheckID, LRD.Data = ExpectedData,
AffirmIf( DataCheckID, MetaMatch(LRD.Data, ExpectedData),
"Read Data: " & to_hxstring(LRD.Data) &
" Read Address: " & to_hxstring(LAR.Addr) &
" Prot: " & to_hxstring(ReadProt),
Expand Down
3 changes: 2 additions & 1 deletion Axi4/src/Axi4ManagerVti.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
--
-- Revision History:
-- Date Version Description
-- 12/2022 2022.12 Updated read check to use MetaMatch.
-- 10/2022 2022.10 Changed enum value PRIVATE to PRIVATE_NAME due to VHDL-2019 keyword conflict.
-- 05/2022 2022.05 Updated FIFOs so they are Search => PRIVATE
-- 03/2022 2022.03 Updated calls to NewID for AlertLogID and FIFOs
Expand Down Expand Up @@ -532,7 +533,7 @@ begin
ExpectedData := SafeResize(TransRec.DataToModel, ExpectedData'length) ;
--!!9 TODO: Change format to Transaction #, Address, Prot, Read Data
--!! Run regressions before changing
AffirmIf( DataCheckID, LRD.Data = ExpectedData,
AffirmIf( DataCheckID, MetaMatch(LRD.Data, ExpectedData),
"Read Data: " & to_hxstring(LRD.Data) &
" Read Address: " & to_hxstring(LAR.Addr) &
" Prot: " & to_hxstring(ReadProt),
Expand Down
2 changes: 1 addition & 1 deletion Axi4Lite/src/Axi4LiteManager.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ begin
ExpectedData := SafeResize(TransRec.DataToModel, ExpectedData'length) ;
--!!9 TODO: Change format to Transaction #, Address, Prot, Read Data
--!! Run regressions before changing
AffirmIf( DataCheckID, LRD.Data = ExpectedData,
AffirmIf( DataCheckID, MetaMatch(LRD.Data, ExpectedData),
"Read Data: " & to_hxstring(LRD.Data) &
" Read Address: " & to_hxstring(LAR.Addr) &
" Prot: " & to_hxstring(ReadProt),
Expand Down

0 comments on commit bd35367

Please sign in to comment.