Coder Social home page Coder Social logo

generator_hdl's Introduction

generator_hdl's People

Contributors

drzazga888 avatar tbajorek avatar

Watchers

James Cloos avatar  avatar  avatar

generator_hdl's Issues

moduł signal2trans - dodanie detektora zbocza narastajacego

Przykład z neta: (chodzi nam o rising)

// edge_detection.v
module edge_detection(
    input clk,
    input i,
    output o
    );
     
parameter DETECTION = "rising"; // edge detection
 
reg q = 1'b0;
 
always@(posedge clk)
    q <= i; 
 
generate 
    if (DETECTION == "rising")
        assign o = i & ~q;    
    else if (DETECTION == "falling")
        assign o = ~i & q; 
    else if (DETECTION == "both")
        assign o = (i & ~q) | (~i & q);
    else initial begin
        $display("DRC ERROR: invalid parameter DETECTION, avaliable are rising, falling or both");
        $finish;
    end   
endgenerate
 
endmodule

błędny rozmiar rejestrów...

podczas ładowania tb:

WARNING: File "/home/mario/generator_hdl/signal2data.v" Line 32. For instance signa2data_impl/memory_impl/, width 5 of formal port address is not equal to width 4 of actual variable address_reg.
WARNING: For instance fsm_inst/spi_impl/, width 32 of formal port data2trans is not equal to width 21 of actual constant.

ostateczny format dla CSV

verilog:

module  memory();
    reg [7:0] my_memory [0:255];
    initial begin
        $readmemh("memory.list", my_memory);
    end
endmodule

momory.list:

//Comments are allowed 
1100_1100   // This is first address i.e 8'h00
1010_1010   // This is second address i.e 8'h01
@ 55        // Jump to new address 8'h55
0101_1010   // This is address 8'h55
0110_1001`   // This is address 8'h56

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.