mirror of
https://github.com/SpinalHDL/VexRiscv.git
synced 2025-01-03 03:43:39 -05:00
Fix UartRx sim
This commit is contained in:
parent
74becb6633
commit
bc792a8655
1 changed files with 3 additions and 3 deletions
|
@ -689,8 +689,8 @@ public:
|
||||||
uint32_t counter;
|
uint32_t counter;
|
||||||
virtual void tick(uint64_t time){
|
virtual void tick(uint64_t time){
|
||||||
if(time < holdTime){
|
if(time < holdTime){
|
||||||
if(*rx != holdValue){
|
if(*rx != holdValue && time + (uartTimeRate>>7) < holdTime){
|
||||||
cout << "UART RX FRAME ERROR" << endl;
|
cout << "UART RX FRAME ERROR at " << time << endl;
|
||||||
holdTime = time;
|
holdTime = time;
|
||||||
state = START;
|
state = START;
|
||||||
}
|
}
|
||||||
|
@ -831,7 +831,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
void refresh(){
|
void refresh(){
|
||||||
cout << "Display refresh " << refreshCounter++ << endl;
|
//cout << "Display refresh " << refreshCounter++ << endl;
|
||||||
SDL_UpdateTexture(texture, NULL, pixels, 640 * sizeof(Uint32));
|
SDL_UpdateTexture(texture, NULL, pixels, 640 * sizeof(Uint32));
|
||||||
SDL_RenderClear(renderer);
|
SDL_RenderClear(renderer);
|
||||||
SDL_RenderCopy(renderer, texture, NULL, NULL);
|
SDL_RenderCopy(renderer, texture, NULL, NULL);
|
||||||
|
|
Loading…
Reference in a new issue