Difference between revisions of "SystemVerilog"

From Wiki at Neela Nurseries
Jump to navigation Jump to search
(Add ink to Github SystemVerilog / Verilog sample FIFO code)
m (Comparator)
Line 12: Line 12:
  
 
   mem[wr_ptr[ADDR_WIDTH-1:0]] <= din; //not using wr_ptr directly to prevent overflow
 
   mem[wr_ptr[ADDR_WIDTH-1:0]] <= din; //not using wr_ptr directly to prevent overflow
 +
 +
Comparator
 +
 +
*  https://www.fpga4student.com/2017/02/verilog-code-for-comparator.html
 +
 +
 +
Comparator

Revision as of 09:01, 24 November 2026

2026-11-14 sab

2026-11-22 dom

An interesting use of FIFO register pointers, defined to be one bit wider than the address bus for first-in-first-out register file

One line of interest here is:

  mem[wr_ptr[ADDR_WIDTH-1:0]] <= din; //not using wr_ptr directly to prevent overflow

Comparator


Comparator