Size: a a a

FPGA technical questions

2019 April 30

a

akkyf in FPGA technical questions
if denominator is 0 -> foo is X
источник

AK

Alexey Kanakhin in FPGA technical questions
Prince😊 Ind
Please help me how the denominator become zero here thank you
b should be 4'sb1110, what is actually -1 (ones'-complement of 4'sb0001)
источник

a

akkyf in FPGA technical questions
4'sb1111 is -1, 4'sb1110 is -2, 4'sb0000 is 0
источник

T

Travis in FPGA technical questions
You could see if Active-HDL from Aldec has a path
источник

T

Travis in FPGA technical questions
For edif to structural HDL
источник

T

Travis in FPGA technical questions
I believe their tool will import old foundation stuff just fine
источник
2019 May 06

RZ

Ruslan Zuckerbrin in FPGA technical questions
Hello! Has anyone tried to initialize ROM with .wav audio file using Verilog/SystemVerilog? I had tried to use $readmemh, but get an error. Does it real to initialize ROM in hardware, not in the testbench?
источник

V

Vladislav in FPGA technical questions
Ruslan Zuckerbrin
Hello! Has anyone tried to initialize ROM with .wav audio file using Verilog/SystemVerilog? I had tried to use $readmemh, but get an error. Does it real to initialize ROM in hardware, not in the testbench?
Yes. Please, read about Mif files.
источник

V

Vladislav in FPGA technical questions
*upd - for Altera
источник

M

Miguel Angel in FPGA technical questions
Ruslan Zuckerbrin
Hello! Has anyone tried to initialize ROM with .wav audio file using Verilog/SystemVerilog? I had tried to use $readmemh, but get an error. Does it real to initialize ROM in hardware, not in the testbench?
yes, with $readmemh, in Xilinx and Altera
источник

M

Miguel Angel in FPGA technical questions
Ruslan Zuckerbrin
Hello! Has anyone tried to initialize ROM with .wav audio file using Verilog/SystemVerilog? I had tried to use $readmemh, but get an error. Does it real to initialize ROM in hardware, not in the testbench?
never used .mif or .upd files, and it’s synthesizable code
источник

RZ

Ruslan Zuckerbrin in FPGA technical questions
Miguel Angel
yes, with $readmemh, in Xilinx and Altera
But I have troubled with it using readmemh. I need to read .wav file
источник

M

Miguel Angel in FPGA technical questions
Ruslan Zuckerbrin
But I have troubled with it using readmemh. I need to read .wav file
can you show code?
источник

RZ

Ruslan Zuckerbrin in FPGA technical questions
logic [16:0]     ROM[256]

initial
begin
   ROM = readmemh ("path/file.wav");
end
источник

RZ

Ruslan Zuckerbrin in FPGA technical questions
I can show full code, but later.
источник

M

Miguel Angel in FPGA technical questions
I don’t think that is valid Verilog
источник

RZ

Ruslan Zuckerbrin in FPGA technical questions
SystemVerilog
источник

RZ

Ruslan Zuckerbrin in FPGA technical questions
But there is no difference
источник

RZ

Ruslan Zuckerbrin in FPGA technical questions
I use Quartus
источник

M

Miguel Angel in FPGA technical questions
```
initial begin
  $readmemh (“path/file.wav”, rom);
end
```
источник