mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-17 20:02:53 +08:00
289024fd89
- Creating an arbitrary 'src' directory really doesn't help much... - Goal is to make each folder self contained - Make meta repos and individual repos have the same directory structure
26 lines
772 B
Verilog
26 lines
772 B
Verilog
//#############################################################################
|
|
//# Function: 4:1 one hot mux #
|
|
//#############################################################################
|
|
//# Author: Andreas Olofsson #
|
|
//# License: MIT (see LICENSE file in OH! repository) #
|
|
//#############################################################################
|
|
|
|
module asic_dmux4 #(parameter PROP = "DEFAULT") (
|
|
input sel3,
|
|
input sel2,
|
|
input sel1,
|
|
input sel0,
|
|
input in3,
|
|
input in2,
|
|
input in1,
|
|
input in0,
|
|
output out
|
|
);
|
|
|
|
assign out = sel0 & in0 |
|
|
sel1 & in1 |
|
|
sel2 & in2 |
|
|
sel3 & in3;
|
|
|
|
endmodule
|