Questions tagged [vhdl]

VHDL (VHSIC Hardware Description Language) is a language used in electronic design to describe digital systems such as FPGA (field-programmable gate arrays) and IC (integrated circuits).

Filter by
Sorted by
Tagged with
0 votes
2 answers
29 views

Trying to use sign extend for a VHDL project and getting error 10500

So I am trying to implement a single cycle MIPS processor in VHDL in my overall file I am trying to sign extend one of the lines however I am getting error 10500 (Error (10500): VHDL syntax error at ...
Boo Man's user avatar
0 votes
1 answer
31 views

Clocked procedure with array insertions VHDL

I am trying to construct a procedure for my testbench that each clock cycle reads data from an external FIFO and insert the data into an internal array in the testbench. My objective is for the ...
Sander's user avatar
  • 1
0 votes
0 answers
30 views

Calling the LOD module within the LOD module [closed]

In Verilog code in the image, the LOD module is called within the LOD module. What is the reason of this?enter image description here module LOD (in, out, vld); function [31:0] log2; input reg [...
Bahadir's user avatar
0 votes
0 answers
38 views

Object LED of mode OUT can not be read

I am working on a college assignment about a VHDL program that reads 4 bits, a 2-bit, and b 2-bit, then uses conditional programming to turn on an LED. When i save it, it doesnt say i have any error, ...
nasywazrc's user avatar
-1 votes
1 answer
68 views

VHDL Pulse counter in one second and in one minute

I am at the very beginning of Learning VHDL and I am have a lot of insecurity on how to procede. I am not sure if I am doing it right or if there is something wrong because my understanding of the ...
Sabaudian's user avatar
-1 votes
0 answers
49 views

VHDL - determining the element size of a 2d array

This expands on this old question. I have stumbled upon problems when retrieving the element size of a 2D array inside a function/procedure. See the example code below. Maybe you have time to test it ...
rhall's user avatar
  • 73
-1 votes
0 answers
50 views

Reading data from BRAM?

I have created and initialized a BRAM and I want to read from that bram and assign it in my Top.vhd. I recieved the following errors during implementation [DRC INBB-3] Black Box Instances: Cell '...
berk2609's user avatar
-1 votes
0 answers
57 views

Bound check failure while compiling my VHDL code

As the title suggest, I'm getting a "bound check failure" in my code when compiling. Probably this has to do something with types I used in the code, but I can't think of a solution. My goal ...
Kaiser's user avatar
  • 1
-3 votes
0 answers
36 views

VHDL 1261 FPGA - how to change a single bit in a vector with 0 or 1

I'm trying to divide two 32-bit vectors and output a result. I compare a single bit position and then make a decision on this. library IEEE; use IEEE.std_logic_1164.all; use ieee.numeric_std.all; ...
Keith Beech Hall's user avatar
-1 votes
1 answer
54 views

VHDL Ping Pong Game on Cyclone IV EP4CE22 - Display Not Updating Correctly

I'm trying to implement a Ping Pong game using VHDL on a Cyclone IV FPGA (EP4CE22) with ModelSim as my simulation tool. I have the basic game logic implemented, but I'm facing an issue with the ...
f05135's user avatar
  • 122
-2 votes
0 answers
49 views

Problem making 2s complement code with components in VHDL

I have been trying to build a 2s complement generator from basic components, so far my ripple carry adder works fine, but when I "connect" it to form a 2s complement logic it just doesnt ...
zuxixox's user avatar
-1 votes
0 answers
69 views

Shift right in vhdl without using srl

I am currently working on implementing a code that performs a right shift on a 23-bit array. However, I am facing some issues: I'm not sure why, but when I visualize the 'din' signal using GTKWAVE, I ...
Test Prova's user avatar
-1 votes
0 answers
25 views

Accessing RAM (Quartus IP generated) in VHDL

Greets, Environment: Quartus Prime Lite v22.1 Target device: Cyclone 10 LP (10CL025YU256) I am struggling with a project using VHDL to program a Cyclone 10 LP that resides in a Siemens technology card ...
Graeme Lee's user avatar
-1 votes
0 answers
110 views

VHDL several sources for unresolved signal despite only one assignment

The example will be with resolved signal to be able to show waveform, so the problem will be indicated by X metavalue. Given this piece of code: LIBRARY ieee; USE ieee.std_logic_1164.ALL; ENTITY ent ...
sarvel's user avatar
  • 11
2 votes
1 answer
45 views

GHDL cannot find function defined in package

Using GHDL-4.0.0 I want to compile a VHDL entity which makes a reference to a function that is defined in a separate VHDL package file. I get a compilation error error: no declaration for ...
mnemocron's user avatar
0 votes
1 answer
52 views

generate condition in vhdl

I have a shift register in my top module called Rrg and I want to instantiate Sbox module when Rrg(1) = '1' in the called EnCore module. I have warnings: 1)Condition in IF GENERATE must be static. 2)...
ghazalia's user avatar
0 votes
1 answer
42 views

WARNING:Xst:2677 - Node <. of sequential type is unconnected in block <>

I have a problem that is "WARNING:Xst:2677 - Node <DataInputCRC.PROC_CRCOneData> of sequential type is unconnected in block <SPI_Slave>." inside the "DataInputCRC" ...
KL-DEV's user avatar
  • 1
0 votes
2 answers
107 views

Why even use std_logic instead of std_ulogic for implantation purposes?

I know that std_logic is resolved subtype of std_ulogic and allows you to drive a signal by multiple sources. If I understand correctly, designs that contain multiple drivers cannot be implemented ...
Dojan's user avatar
  • 1
0 votes
1 answer
127 views

Have I discovered a solution to updating a signal in a loop in VHDL?

I'm a computer engineering student and we have started to get out feet wet with hardware design using VHDL. I'm getting a better understanding of how the process clock works in VHDL. To my best ...
Orlean Prosper's user avatar
0 votes
2 answers
44 views

Natural number not overflowing in Aldec ActiveHdl

Getting a runtime error_0067 Value -1 out of range (0 to 7). Buf_ptr is set as a natural number but still goes negative because it is not overflowing back to 7. This can easily be fixed with an if ...
jo132123sda's user avatar
0 votes
1 answer
48 views

Use PLL in Lattice Radiant

Using Radiant to program Upduino v3.1 (ICE40UP5K) to implement a PLL created using the IP wizard. Once created, this is the .vhd code where initialized the PLL as well: library ieee; use ieee....
gus's user avatar
  • 355
0 votes
1 answer
66 views

(VHDL-1154) near 'std_logic_vector' ; type conversion expects one single argument

library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; use ieee.std_logic_arith.ALL; use ieee.math_real.all; Use IEEE.STD_LOGIC_UNSIGNED.ALL; port ( signal Led_7 ...
Keith Beech Hall's user avatar
0 votes
2 answers
154 views

how to generate in vhdl in my testbench using a procedure two signals with different frequencies and delays

I am currently trying to generate two signals in my testbench (VHDL) with a different delay, a different duty cycle and two different periods. The two signals must be carried out in parallel and not ...
Stephjojo's user avatar
0 votes
1 answer
95 views

VHDL floating point adder - bound check error

I'm writing a code for a floating point adder. Here follows my code and the testbench I've used. During the simulation (ghdl -r fp_add_TB --vcd=add_fp_TB.vcd) I get the following errors: :error: bound ...
Test Prova's user avatar
0 votes
0 answers
81 views

Function Wash not increasing value in sec signal in VHDL

I'm very new to VHDL and for my digital design project I have to make a simulation of a washing machine in a DE10-Lite FPGA with finite states. Everything seems good so far but when it's turn for the ...
Adolf RJ's user avatar
1 vote
1 answer
104 views

VHDL: How to solve array lengths mismatch Fatal (vsim-3714) error correctly?

The problem - mismatch between the constrained range of the target signal and ranges of the constants being conditionally assigned to it. I'm new to VHDL and this is my first large scale development ...
HardwareEE's user avatar
0 votes
1 answer
127 views

EDA Playground: No *.vcd file found. EPWave will not open

I am trying to run the following VHDL code for a digital clock, but I am encountering an error message and I am not sure how to fix it. This is the link to my code in EDA Playground library IEEE; use ...
倒讚羅傑's user avatar
1 vote
1 answer
69 views

Why doesn't the simplest example work (VHDL, Quartus)?

Here is my VHDL code: entity test is port ( x1, x2 : in bit; f : out bit ); end test; architecture behavior of test is begin f <= x1 and x2; end behavior; In ...
Vladimir Korshunov's user avatar
-1 votes
1 answer
88 views

Multiple Driver Nets on output of IOBUF

I wrote the following module which shall act as a switch between a standard 4-wire SPI and the 3-wire SPI of an AD9637 ADC. Therefore I instantiated an IOBUF, count clock edges and switch the IOBUF ...
DaRaRa's user avatar
  • 1
1 vote
1 answer
84 views

Simultaneous activation of two outputs in the 3 to 8 decoder

I'm trying to build a Decoder3to8 using A Decoder2to4 using Vhdl. i have the following code for Decoder2to4 library IEEE; use IEEE.STD_LOGIC_1164.ALL; entity Decoder2to4 is Port( A0, A1: in ...
Crisiroid's user avatar
0 votes
1 answer
67 views

Russian peasant multiplication in VHDL always results in zero

I am implementing Russian peasant algorithm in VHDL. I have the following code. library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity russian_peasant is port ( ...
Amirreza A.'s user avatar
2 votes
2 answers
68 views

Why does my VHDL countdown timer on Nexys3 FPGA board switch between 59 and 68?

I created a 60 second countdown timer in VHDL and connected it to the 7-seg displays on a nexys3 FPGA boar but it doesn't work. This is a project for my college class. I'm not really skilled at VHDL ...
Goran Orsolic's user avatar
0 votes
1 answer
44 views

VHDL what is wrong with simple rising_edge falling edge follower

I have a very simple VHDL code, and I know it might not make much sense to use a code like this but yet I would not understand why, when I'm synthesizing, it is not allowed. entity TopLevel is ...
Mart's user avatar
  • 475
1 vote
0 answers
66 views

Russian peasant multiplication in VHDL

I'm using Xilinx ISE to compile and simulate VHDL code. And I'm trying to compute the multiplication of two 8-bit numbers using the Russian algorithm. The following code is how I'm currently doing it: ...
Amirreza A.'s user avatar
-1 votes
1 answer
169 views

How do i read txt file in Vivado (VHDL)?

This is a simplified example of a problem I faced with reading a txt file in Vivado. In this example, I am just reading from a txt file and comparing what I read with a signal. The code runs well in ...
Joel254's user avatar
0 votes
1 answer
47 views

What value do uninitialized internal signals take on when when used in signal assignment?

In the following code, A is attached to I/O while B is an internal signal that is not assigned an initial value. architecture Behavioral of adder is signal B : STD_LOGIC_VECTOR(7 DOWNTO 0); begin ...
cepuz's user avatar
  • 9
0 votes
2 answers
120 views

CLOCK_DEDICATED_ROUTE error in creating an RS latch

I am trying to describe a RS asynchronous latch in VHDL. I receive this error from vivado. [Place 30-574] Poor placement for routing between an IO pin and BUFG. If this sub optimal condition is ...
Marcu Petric's user avatar
-1 votes
1 answer
49 views

I can't get the addition and subtraction to execute correctly and the results I'm getting are wrog. How can I fix this?

So I'm trying to desgin a Processor for a university project and as I was going back to check my code I found out that my ALU unit doens't produce the correct results for addition and subtraction. Can ...
DilligentSlacker's user avatar
0 votes
1 answer
51 views

Vivado VHDL latch removal

I'm using VHDL and Vivado for a sort of clocked filter that reads one bit at a time from an i_w channel when an input i_start is given and stays active, converting it into a memory address from which ...
Pier Paolo Lanzi's user avatar
-2 votes
1 answer
202 views

Verilog to VHDL conversion

I have the following piece of code in Verilog which I am trying to convert to VHDL. Verilog code: always@(posedge iGO or negedge iRST) begin if(!iRST) go_en <= 0; else begin ...
Engineer's user avatar
1 vote
2 answers
109 views

What do I write in case statement choices if there is nothing to do?

I'm doing this assignment: Start out by implementing the simple version of code lock described in figure 4 using the interface described in figure 3. Use the three-process template to implement the ...
gwag's user avatar
  • 11
0 votes
1 answer
124 views

Altera Quartus II Can't synthesize current design -- Top partition does not contain any logic

I've started working with FPGAs and VHDL In Model Sim everthing works and does what it has to do, but if I want to compile it in Quartus the error shows up. library ieee; use ieee.std_logic_1164.all; ...
Setes's user avatar
  • 1
0 votes
1 answer
98 views

Designing A Register File For A MIPS Processor Using VHDL?

I'm in the process of designing a MIPS processor using VHDL. In the write operation I'm having errors which I can't really understand its content. I already have designed a MUX 32*1 , Decoder 5*32 &...
Ahmed El-Baramony's user avatar
1 vote
1 answer
85 views

how to fix "found '0' definitions of operator + cannot determine exact overloaded matching definition for +"?

Been trying to do my testbench in vhdl but the error "found '0' definitions of operator + cannot determine exact overloaded matching definition for +" keeps showing. library IEEE; use IEEE....
JustTryingToLearn's user avatar
0 votes
1 answer
97 views

Can synthesizers pay attention to intentional 'Z' at compile time?

In Verilog, I have an input port that I would like to make optional. It's the start pin for a microarchitecture. If user does not want to drive the start pin manually, the module will use its own ...
James Strieter's user avatar
0 votes
1 answer
41 views

Why does my code return this error when I run it

library IEEE; use IEEE.std_logic_1164.all; entity LogicC is port(TL,TS,RL,GL,YL,TRX,CLK:in std_logic_vector(1 downto 0);O:out std_logic_vector(1 downto 0)); end entity; architecture DigitalS ...
Calvin's user avatar
  • 1
0 votes
1 answer
49 views

couldn't implement registers for assignments on this clock edge(VHDL)

``--! start state logic start_int <= start; ssl_edge_detect_proc: process(start_int,clk) begin if rising edge(start_int) then start_edge_old<='1'; else start_edge_old<='0'; ...
Srikanth's user avatar
0 votes
1 answer
93 views

Fatal: (vsim-3807) Types do not match between component and entity for port "out1" Without Identifiable Cause

I've read all the other questions asked with the same issue, but none of them were helpful. Either not enough information was given and so the question remained unanswered, or the answers didn't apply ...
Frasher Gray's user avatar
0 votes
1 answer
92 views

Interrupt in Microblaze on AXI_GPIO (XILINX FPGA)

I study to work with FPGA (Xilinx Kintex Ultrascale). In Vivado i create blockdesign with my module (gen_data) and Microblaze (soft processor for XILINX fpga). Connect with Microblaze across AXI_GPIO (...
Andry's user avatar
  • 13
-1 votes
1 answer
102 views

How to use concatenation when port mapping in VHDL code when using ModelSim

I would like to concatenate in the port mapping but unfortunatly I get an error when I compile my code in ModelSim, I read that concatenation in the port mapping is not supported by the software. I ...
Vanessa 's user avatar

1
2 3 4 5
115