Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 317577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:29:25+00:00 2026-05-12T08:29:25+00:00

I am developing a library for serial communications with an FPGA via RS-422 port.

  • 0

I am developing a library for serial communications with an FPGA via RS-422 port. This library is part of a bigger project.

I know I can test some parts of it, as the message generation. You set the inputs, and you can test if the array of bytes match the expected one. But, what if I wanted to make a more general test, how could I generate unit tests for it? do I have to write a simulator of the FPGA behaviour? is it possible to test the library in isolation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T08:29:25+00:00Added an answer on May 12, 2026 at 8:29 am

    I would say that testing with an emulator or mock is going to let you exercise your code paths much more easily than prodding the real thing.

    Ideally one uses something pre-existing. Otherwise it may not be a small amount of effort to build the emulation. However, if you don’t understand the protocol well enough to emulate it then you surely can’t communicate with it 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a library class that uses a serial port to communicate with
I'm developing a library for use in other apps and this library has lots
I am developing a games library where I can add or delete my games.
I am developing a simple class library project, which will give me a dll.
I'm developing a static library in Obj-C for a CocoaTouch project. I've added unit
I'm new to JNI, i'm developing a native library for an Android project. I
I am using Visual studio in windows for developing C library. Can someone please
I'm developing a library which you can use in client or server code. More
I'm trying out jQuery.UI library.Developing web interfaces is very easy with this library.I was
I'm developing a technical library class that can be used on both types of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.