Forum Discussion

LBeau2's avatar
LBeau2
Icon for New Contributor rankNew Contributor
6 years ago

Question regarding MAX10 and clock switchover

Hello,

So for my product, I have already coded an SPI shift registers, then, in another module, I am comparing magnitude of 2 seperate bytes with upper and lower limit then simply output to some pin in a non-deterministic fashion, there is not some other dataset to be synched with. Not much fancy. Clocks to be sampled are running @ 150Mhz or 108Mhz.

In all I have 4 clock pins, connected as such, with an active oscillator.

Possibly I would like to re-use the calculation logic and simply change clocks.

Here is some rough sketch idea, sorry for my little experience but I started verilog for this project 2 weeks ago, I had studied it a bit before.

Basically I am asking help on how to get started as it regards the primitive syntax, I would prefer a rough sketch, yet detailed enough that I can be on my way. An example with some directive on how to accomplish a bug free switchover using my particular setup.

Thank you.

always @(posedge main_clk)begin
 
             if(silence_inv==1'b0) begin
 
                     calculation
                    ....
             
                end
                end
 
always @(posedge mcu_clk)begin
 
             if(silence_inv==1'b1) begin
 
                     calculation
                    ....
             
                end
                end

7 Replies

  • LBeau2's avatar
    LBeau2
    Icon for New Contributor rankNew Contributor

    Hello???

    You have never helped anybody before with this, I Iooked on the forum, where are the old Altera forums?

    Do I have to pay for help? Because I will...

    Please help!

    • LBeau2's avatar
      LBeau2
      Icon for New Contributor rankNew Contributor

      Hello thank you so much for your response,

      I am using anything from the tqfp144 10m08sce144c8g, on single supply 3.3v

      Any more specific help?

      A picture of the organization setup v files you would use? Example code?

  • LBeau2's avatar
    LBeau2
    Icon for New Contributor rankNew Contributor

    Yes, Can I send you my project?

    Its very small only 4 files.

    You will understand in less than 30 seconds.

  • KhaiChein_Y_Intel's avatar
    KhaiChein_Y_Intel
    Icon for Regular Contributor rankRegular Contributor

    Hi,

    Sure. You may create the design .qar by clicking Project > Archive Project > Archive. What is the software edition and version you are using?

    Thanks.