Welcome to EDAboard.com

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.

Recent content by ipunished

  1. I

    [SOLVED] [Verilog] Data is not transferred from one register to another

    solved it by replacing always @ (select) with always @(*)
  2. I

    [SOLVED] [Verilog] Data is not transferred from one register to another

    Thanks for the reply. But even in case 00, the registers regdx are not updated. And in the simulation I have shown the select signal is set at 01. I don't think it's a range issue
  3. I

    [SOLVED] [Verilog] Data is not transferred from one register to another

    Hi, I have instantiated a stopwatch module into this multiplexer module. The stopwatch is working as it is supposed to and is producing the expected output. This is also picked up by the instantiated registers, but if I want to use this data further down the module, it does not work. For...
  4. I

    Testbench giving unknown (x) on output

    Hi, so i want to make a simple code to make an LED blink. here is the code I have module led_glow( input clock, output led ); reg [5:0]count; always @ (posedge clock) begin count <= count+1; end wire [3:0]PWM_in; assign PWM_in = count[5]?count[4:1] : ~count[4:1]; reg...
  5. I

    Some basic questions regarding the attached code

    Hi, Im learning Verilog by example from Chu's book.. so have a few basic questions.. this code is for a simple counter: module univ-bin-counter #(parameter N=8) ( input wire clk, reset, input wire syn-clr , load, en, up, input wire [N-1:O] d, output wire max-tick...
  6. I

    how to create a kernel of 3 matrices in opencv?

    how to combine 3 matrices into 1 in C++ or opencv Hello, im working with opencv and image processing.. ive converted 3 images to 1 row and n column matrix.. now i want to combine these 3 matrices into a combined matrix which will be 3*n.. any idea how to do it? thank you
  7. I

    Making sense of this image to array code

    ok so i wrote it and ran the file and it did what i thought its writing every point in res[i] equal to 5.. dont know why.. I want res[i] to equal or take the value of image opened.. how do I do that? Thanks
  8. I

    Making sense of this image to array code

    I want to convert an image to a character array, I was able to find this code: void main() { fstream image; image.open("C:\\pic.bmp", std::ios_base::binary); //open pic in binary mode image.seekg (0, ios::end); //count from end of file to beginning int n = image.tellg(); //store current...
  9. I

    Simple LCD Verilog codes for display characters

    Re: lcd code (verilog or vhdl) i can agree with the complexity of your code, as i spent all morning trying to figure out what it does.. tried overwriting hellow world with something else and it doesnt work :(
  10. I

    Ideas for connecting to analog input of PIC

    Thanks miguel, that is somewhat like the schematic i found in my link, can you give a bit more details on its working.. as in if im to make a schematic of this.. furthermore, how can it only take the value by just one connection? Thanks
  11. I

    Go to start after interrupt?

    |I thought of that, but wont it leave teh stack mismanaged.. I mean when teh microcontroller goes to ISR, it stores what its doing on stack and then come back and pick up..
  12. I

    Go to start after interrupt?

    Thanks for your detailed reply, kandhu, but I dont want to turn the microcontroller completely off, as after the interrupt, I want it to wait for the start button again, I just want tahts after teh stop switch is pressed it just stops running everything, i mean send 0 to all output ports...
  13. I

    Go to start after interrupt?

    I understand that when an interrupt occurs the micro controller returns to where it left from.. but my interrupt consists of a stop switch, i.e. after the iterrupt I want it to stop everything.. my code consists of running a motor in a while(1) loop.. after the hardware interrupt is pressed it...
  14. I

    Ideas for connecting to analog input of PIC

    @ andre, I thought of using an op amp and also found this configuration **broken link removed** but it does not explain much.. @ Miguel the PIC is supposed to measure the voltage accross a resistor, and how it must be attached is what im asking :)

Part and Inventory Search

Top