Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi,
I have a data set with timestamps of detected events (e.g 14.2, 14.3, ... 15.2 in seconds but with precision in ns time scale). The detection follows a periodic form. So, I need to find the frequency and consequently the period of the signal (about 695ns). I used python and Fourier...
SystemVerilog, "struct packed", module mapping issue in Encounter RTL compiler
Hi all,
I am trying to synthesize a design with Encounter RTL but I am having problems with a struct. I am using many structs so I am posting only one as an example.
Let's say I am using this which is...
Hi all,
I will try to explain what my question is. To make it more clear lets make an example. I have the struct:
typedef struct packed{
logic[`PR_ADDRESS_WIDTH-1:0] address;
logic[`ADC_CODE_WIDTH-1:0] adc0_code;
logic[`ADC_CODE_WIDTH-1:0] adc1_code;
logic[`ADC_CODE_WIDTH-1:0] adc2_code...
Hi,
I am quite new to SystemVerilog. I want to assign a value to a signal that has a width set by a parameter (CODE_WIDTH). When trying to compile in ModelSim I get the error:
near "'b": syntax error, unexpected BASE, expecting ';' or ','
The line is:
assign memory_code[02] =...
Re: Accesing all files in folder using VHDL textio library
Thank you very much. I don't actually understand what .all at fname.all does. But I managed to make it work. I didn't know that you can create one continuous string by concatenating some others. That, plus the integer'image() was the...
Accesing all files in folder using VHDL textio library
Hi all,
for the project I am currently working on, I am using data from an input file. My design is almost done but I have tested it only with one input data file. Now I want to test it on all of the data files (~10000). In addition I want...
Nice feedback 'ads-ee'. In my design I have all the parameters in a separate file. I use the defines just for the simulation. This is actually a sample code for the logic of the FIFO. I usually work with VHDL so whenever I want to use a component that is generic I just use a tool to produce it...
I joined the forum quite recently and I don't know how things work. I just pushed the "attachments" button when I was composing the original post. Then a pop-up window appeared and I tried to upload files from there. I don't know if this is what you mean. :)
Hi all.
I've been looking for a FIFO implementation in SystemVerilog and unfortunately I couldn't find anything. So I decided to make one and post it here just in case someone needs it in the future...
My bad. It wasn't an error but a warning. Probably cause of bad call of the function. Haven't explored $fwrite() in details yet. I will do when I need it :) . But now I think I got the point of how it works. Thank you for your help.
Thank you for your fast reply. I've already checked this link, but can't tell if it's for SystemVerilog or Verilog. At some point I get some compilation errors when I try to use stuff from Verilog. I am very fresh to both languages and can't easily distinguish what is used in one and what in the...
Hi all,
I am struggling to find some documentation for file IO operations in SystemVerilog. I can't find a decent guide even for Verilog. I managed to read a file or write to a new one, but I managed to do only the very basic operation (read and write as char). What I actually need is to read...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.