Search Engine

Verilog Code For Matrix

Add Question

16 Threads found on Verilog Code For Matrix
Is this possible placing the if statement inside the genvar and for look because I want to check each element of an array zero or not ? And then assign specific function for the values if its zero or non-zero element? Because when I tried the above syntax its throwing an error "A is not a constant" ? Thanks genvar
Once again your treating verilog as software. A 2D array does not necessarily translate to a memory. Many times you will end up with a large array of FFs., which maybe is okay in this case as the entire array is single bits and only 240x128. You really need to be aware you are designing a digital hardware design and what each line of code represen
Hi, I have a vector and a matrix of hexadecimal values stored in .mem files. I need to subtract this vector from each row of a matrix in each clock cycle. I have read my files to my testbench file using $readmemh in verilog. How can I subtract them now? I have used xilinx ip floating ip core for subtraction as well. (...)
Hi I'm new to verrilog HDL...I want to write a program for matrix operations in verilog..please help me Well first off don't think of verilog code as a progrm. verilog isn't a software language. Insstead think in terms of a schematic of a digital circuit, which you will then describe in (...)
Hi everybody! Can we assign matrix directly like in C language. for example: reg matrix ; matrix = {12345,54321,23432,55533,22212}; or matrix = {{1,2,3,4,5},{5,4,3,2,1},{2,3,4,3,2},{5,5,5,3,3},{2,2,2,1,2}}; - - - Updated - - -
for the most part System verilog is backwards compatible with verilog
Hi guys, i am new at verilog. I generated a working verilog file using Matlab HDL Generation Tool. I tested it with 16 binary bits using assign parameters and it worked for this values. But i need an input random binary matrix. The following code must use this matrix with 16 bits block. How (...)
If you have knowledge on VHDL or verilog,the You can write a code for Keyboard logic first then you instantiate your code in your top module of ur project.
i want to write verilog code for 2 dimensional FFT which needs defining a 2 dimensional matrix and every element in this matrix is an array of 15 ...can anyone tell me how to write data in way is defining an array of (no of rows* no of der any other method? and also (...)
sir this is my project pls help me for writing code .and give some suggestion...
you dont define where you're trying to implement this. FPGA, DSP, VHDL, verilog?
Can you tell me how to do same thing in verilog? Thanks
Dear all, Appreciate if anyone has access to verilog/VHDL code for Gray Level Co-occurrence matrix (GLCM) for implementation on FPGA ORverilog/VHDL code for any general image processing operation that uses spatial convolution such as sobel / prewitt (...)
Hi all, I'm working on matrix oriented Processor development (architecture, ISA). I collected a lot of information about this kind of processing. I'm in architecture research and development stage. I have some written code in verilog. This kind of processors are going to be used in science , video , multimedia, anywhere (...)
Some months ago, I wrote a simple crude verilog module (sorry not VHDL) that displays "Hello World!" on the LCD of the Xilinx Spartan-3E Starter Kit. Maybe it will help you. Look in this long discussion for my message dated 07 June 2007:
Hi every body, I am looking for verilog code for matrix multiplication (not involving the use of a cordic core cause that would take alot of space on the FPGA.............I mean is it possible to have a code without CORDIC core used.........) .........if any one knows about it then (...)