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.
i need 16676 posedges of outclk1 during a duration in which a counter k runs from 0 to 1023
can anyone tell a code through which this can be done....???
Added after 4 minutes:
i forgot to mention its to be done in verilog
division in verilog
THE ANSWER IS COMING 0 , BUT I WANT IT TO BE IN EXACT FRACTIONS
WHAT WOULD BE THE FRACTIONAL BINARY ANS??
HOW CAN I DO IT WITH HELP OF LIBRARIES.....??
Added after 2 minutes:
WHAT WOULD BE THE DATA TYPE TO STORE FRACTIONAL NUMBERS?
e_xk1={1/8};
and
e_xk2={-1/8};
1) what are the resulting values in binary in e_xk1 and e_xk2??
2) how are they calculated?
3) what should be the correct declarations for e_xk1 and e_xk2?
yes e_xk1 is an output...sory not to mention
i tried ur approach using:
assign e_xk1 = r[3]; // since all you are doing is divide by 8 == shift by 3.
but it gives e_xk1=1 only when r=8.....when r is less than 8 e.g r=7 it gives 0
i want that when r is greater than 4 so e_xk1 should give...
is the following code correct as explained in comments???...its giving zero in both cases....what cud be the alternative?
input [3:0]r;
reg [3:0] e_xk;
reg e_xk1; //output declared as reg
e_xk={r/8}; // bits divided by 8
begin
if (e_xk<=4'd 2) // if e_xk is...
can anyone solve the problems stated in comments in the following code.....???
module eseone(clr,e_xk1,var_xk,var_r,e_zeta_k,var_zeta_k,e_ese_xk,r); //module eseone with I/Os given in brackets
input [3:0]r; //bits received by the system receiver
input clr; //control signal given just...
simulation problem
i have a few questions:
1- when i simulate the code given below it shows clock missing(red lines) after certain contant intervals for the case of inp how to remove this?
2-if range of ot1 is [1023:0] and same is range for out1 then
ot1<=out1;
leads to serial...
1) delays are not synthesizable...then how to wait for 2 clock cycles in each case?
2) inp is actually a buffer having a size of [1023:0]
inp is to be filled by whatever bits come on s21 ,one by one on every clock edge
meaning thereby that 1 bit comes from s21 and fills inp[0] on 1st posedge...
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.