mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 02:45:52 +00:00
initial import
This commit is contained in:
commit
7764d0ba1d
481 changed files with 54634 additions and 0 deletions
14
tests/hana/test_simulation_decoder_3_test.v
Normal file
14
tests/hana/test_simulation_decoder_3_test.v
Normal file
|
@ -0,0 +1,14 @@
|
|||
module test (input [1:0] in, input enable, output reg [2:0] out);
|
||||
|
||||
always @(in or enable)
|
||||
if(!enable)
|
||||
out = 3'b000;
|
||||
else begin
|
||||
case (in)
|
||||
2'b00 : out = 3'b001 ;
|
||||
2'b01 : out = 3'b010;
|
||||
2'b10 : out = 3'b010;
|
||||
2'b11 : out = 3'b100;
|
||||
endcase
|
||||
end
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue