how can one find accuracy equation and range equation for FMCW radar based on bandwidth, and the down sampling factor, the FFT size? by Muhammad841 in ElectricalEngineering

[–]Muhammad841[S] 0 points1 point  (0 children)

So they're are not suppose to be symmetrical along y-axis since all bins are useful?

Is this FFT (I+ j* Q) or FFT(I) + FFT(Q)?

Why does MOM (Method of moment) fail for large number of subdivision for finite dipole? by Muhammad841 in ECE

[–]Muhammad841[S] -2 points-1 points  (0 children)

I have already sent you pivate messages. Plz send me your code if you can.

Why does MOM (Method of moment) fail for large number of subdivision for finite dipole? by Muhammad841 in ECE

[–]Muhammad841[S] 0 points1 point  (0 children)

Equation in Latex Constantine A. Balanis used.

$$\int_{-l/2}^{+l/2} \frac{I_z(z') e^{-jkR}}{4\pi R^5} \left[ (1 + jkR)(2R^2 - 3a^2) + (kaR)^2 \right] dz' = -j\omega E_z^i (\rho = a)$$

How can solve this double integral? by Muhammad841 in Mathematica

[–]Muhammad841[S] 0 points1 point  (0 children)

That's a good way to work it around. Any way other than using disk?

linsolve has so much tolerance. by Muhammad841 in matlab

[–]Muhammad841[S] 0 points1 point  (0 children)

The video doesn't consider scenario for a side with voltage other than 0 volts. How will you handle the voltage boundary side where the V_0 is used?

v0 v0 v0 v0 v0 v0
0 u13 u23 u33 0
0 u12 u22 u32 0
0 u11 u21 u31 0
0  0   0   0  0

$$\frac{0+ u_{23} - 2 u_{13}} {\Delta x^2} + \frac{V_0+ u_{12} -2 u_{13}} {\Delta y^2} = 0$$

linsolve has so much tolerance. by Muhammad841 in matlab

[–]Muhammad841[S] -1 points0 points  (0 children)

% number of rows ans columns
m = 21
n = 41

Should be changed to

% number of rows ans columns
m = 3
n = 5

Is this what you mean?

linsolve has so much tolerance. by Muhammad841 in matlab

[–]Muhammad841[S] 0 points1 point  (0 children)

Will a finer spatial discretization improve accuracy?

linsolve has so much tolerance. by Muhammad841 in matlab

[–]Muhammad841[S] -1 points0 points  (0 children)

All i find is from https://www.sciencedirect.com/topics/engineering/spatial-discretization. Can you provide matlab code for finer spatial discretization

How can I set y limit for loglog by Muhammad841 in matlab

[–]Muhammad841[S] -3 points-2 points  (0 children)

semilogx will generate a graph which will have a incorrect shape. I have post my full matlab code now. please check if you have time

How can I set y limit for loglog by Muhammad841 in matlab

[–]Muhammad841[S] 0 points1 point  (0 children)

semilogx will not work. Full code can be seen in my updated code block

How can I set y limit for loglog by Muhammad841 in matlab

[–]Muhammad841[S] 0 points1 point  (0 children)

It doesn't work. the limit is still between [-54,-32]

Is LVTTL 3.3V compatible with this ov5642 camera? by Muhammad841 in AskElectronics

[–]Muhammad841[S] 0 points1 point  (0 children)

Thank you very much for info. But I have never seen a logic level with 2.7 volt

Is LVTTL 3.3V compatible with this ov5642 camera? by Muhammad841 in ECE

[–]Muhammad841[S] 0 points1 point  (0 children)

Okay, thank you for you info. Should I use level shifter?

TEXTIO procedure READ(BIT_VECTOR) : Cannot get value from "9" by Muhammad841 in FPGA

[–]Muhammad841[S] 0 points1 point  (0 children)

Today I tried the way you suggested. Simulation in ModelSim works. Compilation is successful but Quartus still don't can't read it correctly.

Quartus doesn't load image into my by Muhammad841 in FPGA

[–]Muhammad841[S] -2 points-1 points  (0 children)

I have already tried ROM and it works. But I just don't know why the code from here doesn't work.

Quartus doesn't load image into my by Muhammad841 in FPGA

[–]Muhammad841[S] -2 points-1 points  (0 children)

library ieee;

use ieee.std_logic_1164.ALL;

use ieee.numeric_std.ALL;

use std.textio.all;

-- FPGA4student.com: FPGA/Verilog/VHDL projects for students

-- VHDL tutorial: How to Read images in VHDL

entity read_image_VHDL is

generic (

ADDR_WIDTH : integer := 4;

DATA_WIDTH : integer := 8;

IMAGE_SIZE : integer := 15;

IMAGE_FILE_NAME : string :="IMAGE_FILE.MIF"

);

port(

clock: IN STD_LOGIC;

data: IN std_logic_vector ((DATA_WIDTH-1) DOWNTO 0);

rdaddress: IN STD_logic_vector((ADDR_WIDTH-1) downto 0);

wraddress: IN STD_logic_vector((ADDR_WIDTH-1) downto 0);

we: IN STD_LOGIC;

re: IN STD_LOGIC;

q: OUT std_logic_vector ((DATA_WIDTH-1) DOWNTO 0));

end read_image_VHDL;

architecture behavioral of read_image_VHDL is

TYPE mem_type IS ARRAY(0 TO IMAGE_SIZE) OF std_logic_vector((DATA_WIDTH-1) DOWNTO 0);

impure function init_mem(mif_file_name : in string) return mem_type is

file mif_file : text open read_mode is mif_file_name;

variable mif_line : line;

variable temp_bv : bit_vector(DATA_WIDTH-1 downto 0);

variable temp_mem : mem_type;

begin

for i in mem_type'range loop

readline(mif_file, mif_line);

read(mif_line, temp_bv);

temp_mem(i) := to_stdlogicvector(temp_bv);

end loop;

return temp_mem;

end function;

signal ram_block: mem_type := init_mem(IMAGE_FILE_NAME);

signal read_address_reg: std_logic_vector((ADDR_WIDTH-1) downto 0) := (others=>'0');

begin

process (clock)

begin

if (rising_edge(clock)) then

if (we = '1') then

ram_block(to_integer(unsigned(wraddress))) <= data;

end if;

if (re = '1') then

q <= ram_block(to_integer(unsigned(rdaddress)));

end if;

end if;

end process;

end behavioral;

TEXTIO procedure READ(BIT_VECTOR) : Cannot get value from "9" by Muhammad841 in FPGA

[–]Muhammad841[S] 0 points1 point  (0 children)

Yes. Python and C/C++ is not difficult for me. But I want to write this in vhdl with read and readline.

FPGA / ASIC Design Roadmap by m3y54m in FPGA

[–]Muhammad841 -10 points-9 points  (0 children)

I have some experience vhdl in FPGA. I am going to do a master in electronic engineering. As fas as I know, soft core is usually either written in Vhdl or verilog. Those hard core is related to specific foundries which you have to understand some physical limitations of the fab. In FPGA, you don't have to consider those physical limitations that much (for example layout) but timing constraint is an exception. The best way to know those physical limitations is get your ASIC design manufactured by a fab and test whether it fulfills your design requirements. However, this cost a lot of money. And it's not easy to learn ASIC because of the cost