jayanth03
Newbie level 4
verilog primitive
Hi All,
Below is the example code I am trying to Synthesize in Xilinx ISE 8.1:
///////////////Example code to declare a UDP and use it in a module////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
If you synthesize this code in Xilinx ISE 8.1 you will be able to reproduce the following error:
ERROR:Xst:850 - "top.v" line 28: Unsupported Switch or UPD primitive.
Please let me know if its ok to declare a UDP outside a module in any Verilog_Module.v source or there is there something wrong with this declaration...
I tried declaring the UDP with in the module and that did not work either...
Appreciate for your time and help.
Regards
Jayanth
Hi All,
Below is the example code I am trying to Synthesize in Xilinx ISE 8.1:
///////////////Example code to declare a UDP and use it in a module////////////////////////
Code:
`timescale 1ns / 1ps
module top(DataA, DataB, Control, mux);
input DataA;
input DataB;
input Control;
output mux;
multiplexer
MUX1 (mux, Control, DataA, DataB) ;
endmodule
primitive multiplexer (mux, control, dataA, dataB) ;
output mux;
input control, dataA, dataB;
table
// control dataA dataB mux
0 1 ? : 1 ; // ? = 0 1 x
0 0 ? : 0 ;
1 ? 1 : 1 ;
1 ? 0 : 0 ;
x 0 0 : 0 ;
x 1 1 : 1;
endtable
endprimitive
If you synthesize this code in Xilinx ISE 8.1 you will be able to reproduce the following error:
ERROR:Xst:850 - "top.v" line 28: Unsupported Switch or UPD primitive.
Please let me know if its ok to declare a UDP outside a module in any Verilog_Module.v source or there is there something wrong with this declaration...
I tried declaring the UDP with in the module and that did not work either...
Appreciate for your time and help.
Regards
Jayanth