r/VHDL • • 2d ago

help !!!!!!

0 Upvotes

Title: VHDL 7-segment display multiplexing – AUTOCHECK fails, but simulation and FPGA board seem to work correctly

Hi everyone,

this text is ai generated and is based on the conversation i had with the ai model about the code.

I'm working on a VHDL assignment using a Nexys A7-100T FPGA board. The task is to display the numbers 1 through 8, with one number on each of the eight 7-segment displays.

I'm having trouble understanding why the teacher's AUTOCHECK reports errors even though my simulation looks correct and the display works correctly on the physical board.

1. What the assignment requires

  • Display the numbers 1 to 8, from left to right.
  • Use all eight 7-segment displays.
  • Activate each display for 125 µs.
  • The cathodes must be 8 bits wide, including the decimal point.
  • The decimal points must remain OFF.
  • The clock input is 100 MHz.

2. My current VHDL code

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.numeric_std.ALL;

entity opg_5 is
    Port (
        clk      : in std_logic;
        anodes   : out STD_LOGIC_VECTOR(7 downto 0);
        cathodes : out STD_LOGIC_VECTOR(7 downto 0)
    );
end opg_5;

architecture Behavioral of opg_5 is

    signal clkcounter : integer range 0 to 12499 := 0;
    signal clk_dig : integer range 0 to 7 := 0;

    signal anodes_n : STD_LOGIC_VECTOR(7 downto 0) := "01111111";
    signal cathodes_n : STD_LOGIC_VECTOR(7 downto 0) := "11111001";

begin

    anodes <= anodes_n;
    cathodes <= cathodes_n;

    P_clkdiv : process(clk)
    begin
        if rising_edge(clk) then
            if clkcounter = 12499 then
                clkcounter <= 0;

                if clk_dig = 7 then
                    clk_dig <= 0;
                else
                    clk_dig <= clk_dig + 1;
                end if;

            else
                clkcounter <= clkcounter + 1;
            end if;
        end if;
    end process;

    P_display : process(clk_dig)
    begin
        case clk_dig is

            when 0 =>
                cathodes_n <= "11111001";
                anodes_n   <= "01111111";

            when 1 =>
                cathodes_n <= "10100100";
                anodes_n   <= "10111111";

            when 2 =>
                cathodes_n <= "10110000";
                anodes_n   <= "11011111";

            when 3 =>
                cathodes_n <= "10011001";
                anodes_n   <= "11101111";

            when 4 =>
                cathodes_n <= "10010010";
                anodes_n   <= "11110111";

            when 5 =>
                cathodes_n <= "10000010";
                anodes_n   <= "11111011";

            when 6 =>
                cathodes_n <= "11111000";
                anodes_n   <= "11111101";

            when 7 =>
                cathodes_n <= "10000000";
                anodes_n   <= "11111110";

            when others =>
                cathodes_n <= "11111111";
                anodes_n   <= "11111111";

        end case;
    end process;

end Behavioral;

3. What I have already checked

I initially had the display-selection case statement inside the clock-divider process. I was advised to separate it into a second process sensitive to clk_dig.

After doing that:

  • The simulation shows clk_dig counting from 0 to 7 and then returning to 0.
  • Each digit changes every 125 µs.
  • One complete scanning cycle takes 1 ms.
  • The cathode patterns change as expected.
  • Only one anode is active (LOW) at a time.
  • The physical FPGA board displays the numbers 1 through 8 in the correct order.

I also checked the initial values in the simulation at exactly 0 ns:

  • anodes = 7F (hexadecimal), which is 01111111 in binary.
  • cathodes = F9 (hexadecimal), which is 11111001 in binary.

These match the initial values I assigned in my code.

4. The AUTOCHECK feedback

Despite all this, the teacher's AUTOCHECK reports:

AUTOCHECK 1: NOK

Anodes=11001101b en niet 01111111b op tijdstip 0.
Cathodes=0000000

Translation: At timestamp 0, the checker expected anodes 01111111, but found 11001101. It also reports an unexpected cathode value.

AUTOCHECK 2: NOK

Cijfer 2 werd verwacht op de cathodes in plaats van 1001111

Translation: The checker expected digit 2 on the cathodes but found 1001111.

One detail: the AUTOCHECK feedback shows a 7-bit cathode value, whereas my assignment explicitly requires 8 bits because the decimal point must also be controlled.

5. My XDC mapping

I'm using the Nexys A7-100T. My cathode pin mapping is:

cathodes[0] -> ca
cathodes[1] -> cb
cathodes[2] -> cc
cathodes[3] -> cd
cathodes[4] -> ce
cathodes[5] -> cf
cathodes[6] -> cg
cathodes[7] -> dp

The anodes are mapped to an[0] through an[7].

6. My questions

  1. Why would AUTOCHECK report incorrect initial output values when my simulation shows the correct values at exactly 0 ns?
  2. Could this be related to delta cycles, signal initialization, or the way the testbench samples the outputs?
  3. Is there something wrong with my cathode encoding, especially for digit 2?
  4. Could the checker be expecting a different bit ordering or a different convention for the decimal point?
  5. Is there any problem with separating the clock divider and display-selection logic into two processes?

I'm particularly interested in understanding the actual cause of these failures rather than randomly changing code that already works on the FPGA.

I'd really appreciate a technical explanation or suggestions for what I should investigate next.

Thank you!


r/VHDL • • 10d ago

Genus cadance

Thumbnail reddit.com
0 Upvotes

r/VHDL • • 27d ago

I built an open-source graphical HDL workbench—looking for Windows beta testers

Thumbnail gallery
0 Upvotes

r/VHDL • • Oct 17 '26

OPEN SOURCE – WavePaint: a GUI editor for digital timing diagrams

Post image
6 Upvotes

r/VHDL • • Sep 27 '26

Why would someone still learn VHDL ?

0 Upvotes

Claude is already performing better than most engineers in VHDL, and its about to crush them all in the next couple of years, so why would anyone still spend his time learning vhdl ?


r/VHDL • • Sep 23 '26

I built a virtual FPGA board to help beginners get their first feel for VHDL (GHDL front-end)

Post image
32 Upvotes

I teach VHDL/FPGA at university level, and I keep seeing the same thing: beginners get stuck on the tooling before they ever get to the language. And they need physical hardware just to see if a simple design light's up a LED.

So I built HDLBoard, a graphical front-end for GHDL connected to an interactive virtual DE1-SoC board.

You can:

• Write VHDL in the built-in editor
• Compile and simulate it with GHDL
• Flip switches (SW[9:0]) and press pushbuttons (KEY[3:0]) on the virtual board
• Watch the LEDs and 7-segment displays respond to your design
• Try ideas without any physical FPGA board connected

VHDL → GHDL ↔ virtual board

It's aimed at the very first steps: getting a feel for the language, writing simple gates as entity/architecture pairs, and wiring them together with port maps.

It won't replace testbenches, waveform viewers or timing analysis, and it isn't trying to. Once the basics click, that's where you'd go next.

It's free and open source, which my students appreciate. You can install it as a single Windows app, or host the GHDL backend on a server and use the virtual board from a browser.

The front-end was built with Claude (I am not a React/Typescript dude, youst an old C++ guy 😄). The real heavy lifting (analysis, elaboration and simulation) is all done by GHDL. HDLBoard just puts an editor and a clickable board in front of it.

GitHub: https://github.com/rlangoy/HDLBoard (bug reports welcome)
HomePage: https://rlangoy.github.io/HDLBoard

I'd love feedback, especially from people who teach VHDL or remember learning it:
• Does a virtual board like this help with the jump from digital logic to VHDL?
• What would you want a beginner to be able to try on it (counters, FSMs, simple I/O)?
• Is there anything that would make it worse for learning, like hiding things beginners should see?


r/VHDL • • Sep 04 '26

I built a VHDL simulation engine from scratch in C++20 — lexer, parser, semantic analyzer, linker, and a TUI waveform debugger. Here's why.

Post image
83 Upvotes

I'm a 3rd-year CS student specializing in Computer Architecture. Last semester I had to simulate VHDL designs and the experience was painful — heavy GUIs, half an hour of setup just to see a waveform.

So I spent the summer building my own: a VHDL simulation engine in C++20 with a full compilation pipeline and a terminal UI debugger for waveform inspection. TUIs are having a moment right now and I think hardware tooling deserves one too.

It's open source and open to contributions. Repo: https://github.com/oscar30gt/pulse — feedback and ⭐ appreciated.


r/VHDL • • Sep 04 '26

I built a free VHDL Cookbook with copy-paste templates for FPGA designs

Thumbnail
reddit.com
1 Upvotes

r/VHDL • • Aug 28 '26

Lattice MIPI IP RX Implementation

Thumbnail reddit.com
1 Upvotes

r/VHDL • • Aug 25 '26

Working in vlsi

Thumbnail reddit.com
0 Upvotes

r/VHDL • • Aug 23 '26

Update on my FPGA learning platform: 372 exercises, browser simulation and new learning paths

20 Upvotes

Hi everyone 👋

I wanted to share an update about FPGAPourTous, the FPGA learning platform I have been building. Despite the French name, everything is available in both English and French.

I often see beginners asking how to start learning FPGA development, how to improve their RTL skills, or what they should study after their first counter or state machine.

There are many useful resources online, but it can still be difficult to find a clear progression and enough practical exercises. That is one of the main reasons I created this platform.

The goal is not only to read theory. Learners should be able to write HDL, run simulations, understand their mistakes and gradually work on more realistic systems 🧠

The platform now includes:

✅ 94 courses

✅ 98 quizzes

✅ 372 practical exercises

✅ VHDL simulation with GHDL

✅ Verilog simulation with Icarus Verilog

✅ Self-checking testbenches and direct feedback in the browser

✅ Interactive waveforms for supported simulations

✅ Guided FPGA projects based on complete specifications

I recently added full Verilog and SystemVerilog learning paths, including 50 Verilog exercises across beginner, intermediate and advanced levels.

There is also a complete Zynq path covering Vivado, Vitis, PS/PL architecture, AXI, BSPs, interrupts, DMA and cache coherency, boot images, debugging, custom AXI peripherals, PetaLinux and AXI VIP ⚙️

Another new section focuses on the hardware around the FPGA: reading schematics and datasheets, I/O voltage levels, power sequencing, decoupling, signal integrity, differential pairs, BGA routing, ESD/EMC and board bring-up.

I am also developing longer projects that require more than writing a single RTL module. The first missions are based on a CubeSat flight system and its ground station 🛰️

Learners must analyse the requirements, select components, design the architecture, justify the hardware/software partitioning and implement the complete system. These projects are reviewed manually by me.

Finally, I added a careers section with FPGA-related roles, technical interview questions and mock interviews. I have prepared a pool of more than 1,100 questions based on my experience, previous interviews and reference books.

The site is still evolving, so I would genuinely appreciate feedback from both experienced engineers and learners 🙏

I am particularly interested in your thoughts about technical accuracy, exercise progression and topics that are still missing.

👉 https://fpgapourtous.fr/en?utm_source=reddit&utm_medium=organic_social&utm_campaign=reddit_organic_2026&utm_content=site_update


r/VHDL • • Aug 16 '26

Weird Multiplexing Bug

Thumbnail reddit.com
0 Upvotes

r/VHDL • • Aug 11 '26

I'd like some feedback on my projects documentation

Thumbnail
github.com
0 Upvotes

r/VHDL • • Jul 25 '26

[Project Help] Comparing 4 Multiplier Architectures (Array/Vedic/Booth/Wallace) Inside an 8-bit FFT Core in VHDL — Sanity-Checking My Methodology

Thumbnail reddit.com
1 Upvotes

r/VHDL • • Jul 07 '26

Need recommendations for resources to help learn VHDL

10 Upvotes

So I’m a second year electrical engineering student who has failed half of his classes and is having to resit the exams for or have to take the entire year again.

One of my classes is digital electronics and you need to understand VHDL as like prerequisite learning for the rest of the class. Last semester I just could not understand VHDL in the slightest so I did very poorly in the class. We were given a 21 page document to help us learn named “(Very) Simple Guide to VHDL” but that shit doesn’t help me for some reason I still can’t get it.

Are there any books, YouTube videos etc that can help, I don’t need a super expensive knowledge on VHDL just to understand the basics pretty much.

Any help is appreciated thank


r/VHDL • • Jul 07 '26

Solutions for exercises in "Free Range VHDL"?

6 Upvotes

EDIT: I was using an old version of the book. Here is the newest PDF which features the solutions.

Hello,

I'm currently learning VHDL with the book "Free Range VHDL" and can't find the solutions for the exercises. I know I could use AI to check my work, but I'd rather not use it while learning.

Does anyone have the solutions?

Thanks in advance!


r/VHDL • • Jul 05 '26

Learning VHDL via LaMeres' book: Do I really need to master every single digital logic circuit deeply?

8 Upvotes

Hey everyone, I’m an EEE undergraduate student currently building my roadmap to master VHDL and FPGA design. Right now, I am systematically working through Brock J. LaMeres' textbook, which is great, but I’m finding myself a bit overwhelmed by the sheer volume of digital logic circuits and theoretical components out there.

​I want to be efficient with my time, so I’m wondering how deeply I actually need to master every single digital logic circuit before moving heavily into coding. I'd love to know what the absolute "must-learn" pillars are for the industry, versus things I can just look up in a datasheet later. If anyone could share the biggest mistakes beginners make during this transition from textbook logic to actual synthesizable VHDL, or give me a few pointers on what to focus on for a solid roadmap, I would really appreciate it. Thanks in advance!


r/VHDL • • Jun 11 '26

WavePaint: Online WaveDrom Timing Diagram Editor Updated with More Predefined Signals and Export Fixes

Post image
9 Upvotes

r/VHDL • • Jun 05 '26

Multiple Stream input FFT

1 Upvotes

Hi All,

I was wondering if anyone had or knew of an FFT module which could take roughly 4 lanes in at 250MSPS or similar?

Potentially looking at FFT sizes between 4 and 64K

Cheers


r/VHDL • • Jun 02 '26

Feedback wanted on a practical FPGA/VHDL learning platform

Thumbnail
fpgapourtous.fr
1 Upvotes

r/VHDL • • May 29 '26

Need some opinion on personal projects

Thumbnail
gallery
6 Upvotes

Although these projects are written in Verilog rather than VHDL, I thought the architecture side might be interesting to this community.

I've been learning digital design and built two small spatial-computing style fabrics:

• A programmable morphology accelerator using local 3×3 neighborhood logic

• A wavefront-routing fabric where shortest-path information propagates across a mesh of cells

Both were simulated, synthesized through OpenLane, and taken all the way to GDSII.

I'd appreciate feedback on the RTL architecture and whether similar approaches have been explored in larger FPGA or ASIC systems.

Repos:

https://github.com/abhi15-bose-max/morphology-fabric-asic

https://github.com/abhi15-bose-max/wavefront-routing-fabric


r/VHDL • • May 23 '26

Current Undergraduate Wanting to Learn VHDL Over The Summer Before Final Semester

2 Upvotes

Hello everyone, I hope you are doing well. I am an undergraduate senior set to graduate by the end of this year. I major in Electrical and Computer Engineering and I was kind of aimless of where I was going to go work once I graduate. I took a class that involved vhdl and I thought it was pretty cool. I talked to my professor and apparently there are a few vhdl jobs near where I am from. So I decided I wanted to learn vhdl and my professor was kind enough to let me borrow a NEXYS A7 FPGA board. So, I wanted to ask where I can confidently learn vhdl to a competent degree in order to work on an independent project with my professor? What kind of projects should I attempt over the summer? Are there any supplementary skills I should learn prior or in parallel to learning vhdl?


r/VHDL • • May 23 '26

Current Undergraduate Wanting to Learn VHDL Over The Summer Before Final Semester

Thumbnail reddit.com
1 Upvotes