Skip to content

Some more PoC.arith tests converted to OSVVM#32

Merged
Paebbels merged 16 commits intoVHDL:devfrom
gmartina:update-tb-osvvm2
Nov 30, 2025
Merged

Some more PoC.arith tests converted to OSVVM#32
Paebbels merged 16 commits intoVHDL:devfrom
gmartina:update-tb-osvvm2

Conversation

@gmartina
Copy link

New Features

  • Tests converted to OSVVM:
tb/arith/scaler
tb/arith/firstone
tb/arith/div
tb/arith/convert_bin2bcd

Related Issues and Pull-Requests

Copy link
Member

@Paebbels Paebbels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for providing more testcases translated to OSVVM.
/cc @stefanunrein

Some general comments:

  • I suggest to keep the original author and copyright on files containing major parts of the original testbench.
    Usually, this ends up in the testcontroller. In case there are multiple instances or additional code when instantiated, it would also apply to the harness. For these files we add your name as author and the new copyright line, because it was substantially modified.
    Otherwise, the testcontroller, the *.pro file etc. are new and authored by you and marked with the new copyright line.
  • As these tests are translated and equivalently good, you can also add a commit deleting the old testcases.
  • Maybe we need this deletion for your last PR too :).
  • If you find potential improvements to the testcode or new case ideas, don't hesitate to add them as a comment and/or issue.

As you translate testcases quite quickly to OSVVM-style, I assume you know OSVVM well :). Did you have an OSVVM class with me or @JimLewis in the past or is this all self-educated? If you a have OSVVM question or want to know more complex techniques, I can help/teach you.

@Paebbels Paebbels assigned Paebbels and gmartina and unassigned Paebbels Nov 29, 2025
@Paebbels Paebbels added PoC.arith.* Arithmetic components. Testbench Testbench related. labels Nov 29, 2025
@Paebbels Paebbels added this to the v2.2.0 milestone Nov 29, 2025
@Paebbels
Copy link
Member

Btw. I figured out why my notification were not working. You see I get your actions (issues, answers, PRs, ...) much faster :). Also because your first PR was accepted, your new PR runs immediately on the scope of VHDL/PoC: https://github.com/VHDL/PoC/actions/runs/19785357026

@Paebbels
Copy link
Member

Would you like to run PoC in you account to create the online documentation as https://gmartin.github.io/PoC ?

I see you have multiple forked repositories like PoC, OSVVM, ... you can synchronize them automatically like so: https://github.com/PLC2/Synchronize

gmartina and others added 8 commits November 29, 2025 20:11
Co-authored-by: Patrick Lehmann <Paebbels@gmail.com>
Co-authored-by: Patrick Lehmann <Paebbels@gmail.com>
Co-authored-by: Patrick Lehmann <Paebbels@gmail.com>
Co-authored-by: Patrick Lehmann <Paebbels@gmail.com>
Co-authored-by: Patrick Lehmann <Paebbels@gmail.com>
Co-authored-by: Patrick Lehmann <Paebbels@gmail.com>
Co-authored-by: Patrick Lehmann <Paebbels@gmail.com>
@gmartina gmartina marked this pull request as draft November 29, 2025 19:36
@Paebbels
Copy link
Member

If I counted correctly, I see 2 open review items. When you're done, you can re-request a review (this should trigger me again) and mark the PR as ready (remove draft state).

I re-check all updates so far.

@gmartina gmartina marked this pull request as ready for review November 30, 2025 09:13
@gmartina
Copy link
Author

As you translate testcases quite quickly to OSVVM-style, I assume you know OSVVM well :). Did you have an OSVVM class with me or @JimLewis in the past or is this all self-educated? If you a have OSVVM question or want to know more complex techniques, I can help/teach you.

Thank you! I really appreciate your offer to help. I started learning OSVVM when you gave me an in-person course near Munich a few years ago.

Would you like to run PoC in you account to create the online documentation as https://gmartin.github.io/PoC ?

I see you have multiple forked repositories like PoC, OSVVM, ... you can synchronize them automatically like so: https://github.com/PLC2/Synchronize

Synchronize repo is not available. Maybe it is private?

@gmartina gmartina requested a review from Paebbels November 30, 2025 11:27
Copy link
Member

@Paebbels Paebbels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do the final adjustment on dev branch (see comment below).

Thanks for you contribution.

Comment on lines +37 to +39
constant A_BITS : positive := 13;
constant D_BITS : positive := 4;
constant MAX_POW : positive := 3;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These constants can be moved to the testharness, right? This harness is the only place where it's used.

The idea of simplifying the types (e.g. using T_SLVV) was to reduce complexity and remove this package. Maybe I was not clear enough in my previous review comment.

Comment on lines +53 to +55
constant CLOCK_PERIOD : time := 10 ns;

signal Clock : std_logic;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
constant CLOCK_PERIOD : time := 10 ns;
signal Clock : std_logic;
constant CLOCK_PERIOD : time := 10 ns;
constant A_BITS : positive := 13;
constant D_BITS : positive := 4;
constant MAX_POW : positive := 3;
signal Clock : std_logic;

@Paebbels Paebbels merged commit fa34323 into VHDL:dev Nov 30, 2025
18 of 19 checks passed
@Paebbels Paebbels linked an issue Nov 30, 2025 that may be closed by this pull request
@Paebbels Paebbels changed the title Some Arith tests converted to OSVVM Some more PoC.arith tests converted to OSVVM Nov 30, 2025
@Paebbels Paebbels mentioned this pull request Nov 30, 2025
@Paebbels
Copy link
Member

As you translate testcases quite quickly to OSVVM-style, I assume you know OSVVM well :). Did you have an OSVVM class with me or @JimLewis in the past or is this all self-educated? If you a have OSVVM question or want to know more complex techniques, I can help/teach you.

Thank you! I really appreciate your offer to help. I started learning OSVVM when you gave me an in-person course near Munich a few years ago.

Ah, now it's confirmed. I always thought if your the Gustavo from that company that gave me the space-laser T-Shirt :)

Would you like to run PoC in you account to create the online documentation as https://gmartin.github.io/PoC ?
I see you have multiple forked repositories like PoC, OSVVM, ... you can synchronize them automatically like so: https://github.com/PLC2/Synchronize

Synchronize repo is not available. Maybe it is private?

You're right. Have a look here: https://github.com/Paebbels/SynchronizeForks this works identically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PoC.arith.* Arithmetic components. Testbench Testbench related.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Transform more testbenches to OSVVM tests

2 participants