Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize BurstFifo to prevent scoreboard errors #9

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions UART.pro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
#
# Description:
# Script to compile the OSVVM UART models
# Script to compile the OSVVM UART models
#
# Developed for:
# SynthWorks Design Inc.
Expand All @@ -23,15 +23,15 @@
#
#
# This file is part of OSVVM.
#
# Copyright (c) 2019 - 2020 by SynthWorks Design Inc.
#
#
# Copyright (c) 2019 - 2020 by SynthWorks Design Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# https://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -42,7 +42,7 @@ library osvvm_uart
if {$::osvvm::ToolNameVersion ne "XSIM-2023.2"} {
analyze ./src/UartTbPkg.vhd
} else {
analyze ./src/UartTbPkg_xilinx.vhd
analyze ./src/deprecated/UartTbPkg_xilinx.vhd
}

if {$::osvvm::ToolSupportsGenericPackages} {
Expand All @@ -60,4 +60,4 @@ if {$::osvvm::ToolNameVersion ne "XSIM-2023.2"} {
} else {
analyze ./src/deprecated/UartTx_xilinx.vhd
analyze ./src/deprecated/UartRx_xilinx.vhd
}
}
5 changes: 4 additions & 1 deletion src/UartRx.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ begin
ParityMode <= CheckParityMode (ModelID, DEFAULT_PARITY_MODE, FALSE) ;
NumStopBits <= CheckNumStopBits(ModelID, DEFAULT_NUM_STOP_BITS, FALSE) ;
NumDataBits <= CheckNumDataBits(ModelID, DEFAULT_NUM_DATA_BITS, FALSE) ;
Baud <= CheckBaud(ModelID, DEFAULT_BAUD, FALSE) ;
Baud <= CheckBaud(ModelID, DEFAULT_BAUD, FALSE) ;
-- Initialize BurstFifo even though it is not used, to prevent weird errors
TransRec.BurstFifo <= NewID("RxBurstFifo", ModelID, Search => PRIVATE_NAME) ;
wait for 0 ns ; -- Allow TransRec.BurstFifo to update.

TransactionDispatcherLoop : loop
WaitForTransaction(
Expand Down
5 changes: 4 additions & 1 deletion src/UartTx.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ begin
ParityMode <= CheckParityMode (ModelID, DEFAULT_PARITY_MODE, FALSE) ;
NumStopBits <= CheckNumStopBits(ModelID, DEFAULT_NUM_STOP_BITS, FALSE) ;
NumDataBits <= CheckNumDataBits(ModelID, DEFAULT_NUM_DATA_BITS, FALSE) ;
Baud <= CheckBaud(ModelID, DEFAULT_BAUD, FALSE) ;
Baud <= CheckBaud(ModelID, DEFAULT_BAUD, FALSE) ;
-- Initialize BurstFifo even though it is not used, to prevent weird errors
TransRec.BurstFifo <= NewID("TxBurstFifo", ModelID, Search => PRIVATE_NAME) ;
wait for 0 ns ; -- Allow TransRec.BurstFifo to update.

TransactionDispatcherLoop : loop
WaitForTransaction(
Expand Down